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.


Field Summary
 
Fields inherited from class tomp.ext.Transformation
result, source, transformer
 
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
 
Constructor Summary
Transformation2Response(ServletAction action, java.lang.String id, Validator v, Source src, Style sty)
          Constructs the Transformation2Response.
 
Method Summary
 void setContentType(java.lang.String contentType)
          Sets the MIME Content-Type header on the HttpServletResponse.
 
Methods inherited from class tomp.ext.transform.Transformation2Stream
close
 
Methods inherited from class tomp.ext.Transformation
setParameter, update
 
Methods inherited from class tomp.ext.Base
abortProcessing, commitProcessing, getAsRawSource, getAsSource, id, isReady, isValid, startProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.