com.oroad.stxx.transform
Class TransformerHandler

java.lang.Object
  extended bycom.oroad.stxx.transform.TransformerHandler

public class TransformerHandler
extends java.lang.Object

Takes care of how the XML is sent to the client. It is passed the stxx properties and uses them to create each of the Transformers and their caches. This is a singleton so there is at most one instance of the class.

Author:
Don Brown

Constructor Summary
TransformerHandler(StxxProperties props, javax.servlet.ServletContext context)
          Initializes the handler with the StxxProperties isntance
 
Method Summary
 void processActionTransform(ActionTransform transform, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes an action transform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformerHandler

public TransformerHandler(StxxProperties props,
                          javax.servlet.ServletContext context)
Initializes the handler with the StxxProperties isntance

Parameters:
props - The StxxProperties instance
context - The servlet context
Method Detail

processActionTransform

public void processActionTransform(ActionTransform transform,
                                   javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
                            throws java.io.IOException
Processes an action transform. It finds the appropriate Transformer and calls it.

Parameters:
transform - The value object with transform information
request - The HTTP request used to get the debug param off the querystring
response - The HTTP response used to get the outputstream and set the content-type
Throws:
java.io.IOException - If something goes wrong