com.oroad.stxx.transform
Class TransformerHandler
java.lang.Object
com.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
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 |
TransformerHandler
public TransformerHandler(StxxProperties props,
javax.servlet.ServletContext context)
- Initializes the handler with the StxxProperties isntance
- Parameters:
props
- The StxxProperties instancecontext
- The servlet context
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 informationrequest
- The HTTP request used to get the debug param off
the querystringresponse
- The HTTP response used to get the outputstream
and set the content-type
- Throws:
java.io.IOException
- If something goes wrong