tomp.ext.servlet
Class Transformation2Response
java.lang.Object
|
+--tomp.ext.Base
|
+--tomp.ext.Transformation
|
+--tomp.ext.transform.Transformation2Stream
|
+--tomp.ext.servlet.Transformation2Response
- public class Transformation2Response
- extends Transformation2Stream
Transformation2Response class does a XSLT transformation of provided Source via specified Style to the HttpServletResponse.getOutputStream() output stream.
The other behavior is identical with the Transformation2Stream, except of the possibility of setting MIME Content-Type header on the HttpServletResponse.
Fields inherited from class tomp.ext.Base |
action, application, status, STATUS, STATUS_ABORTED, STATUS_IN_PROCESSING, STATUS_NOT_PROCESSED, STATUS_READY, STATUS_READY_INVALID, STATUS_READY_VALID, validator |
Method Summary |
void |
setContentType(java.lang.String contentType)
Sets the MIME Content-Type header on the HttpServletResponse. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transformation2Response
public Transformation2Response(ServletAction action,
java.lang.String id,
Validator v,
Source src,
Style sty)
throws java.io.IOException,
EXTException
- Constructs the Transformation2Response. The access to HttpServletResponse is taken from ServletAction provided as first parameter to this constructor.
setContentType
public void setContentType(java.lang.String contentType)
- Sets the MIME Content-Type header on the HttpServletResponse.
- Overrides:
setContentType
in class Transformation
- Parameters:
contentType
- the MIME Content-Type to be set. If null, a text/html is supposed as default.