|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oroad.stxx.transform.AbstractSAXTransformer com.oroad.stxx.transform.DOMWriteTransformer
This transformer creates the usual xml from the request then saves it as a DOM node in either the request, session, or servlet context attributes. One possible use would be to use JSTL's XML tags to manipulate stxx-created XML by forwarding the request to a JSP using the "path" attribute.
Field Summary | |
static java.lang.String |
DEFAULT_ATTRIBUTE_NAME
The default attribute name |
static java.lang.String |
DEFAULT_SCOPE
The default scope |
Fields inherited from class com.oroad.stxx.transform.AbstractSAXTransformer |
allowURLDebug, builder, cache, debugXMLPath, expiryTime, log, name, resolveFromTemplatePath, rules, transFactory, writeXMLDebug |
Fields inherited from interface com.oroad.stxx.transform.Transformer |
PROPS_PREFIX |
Constructor Summary | |
DOMWriteTransformer()
Constructor |
Method Summary | |
void |
init(java.lang.String name,
StxxProperties props,
javax.servlet.ServletContext context,
BuilderRules rules)
Initializes the defaults |
void |
setCache(Cache cache,
long expiryTime)
Sets the cache for the transformer (not used) |
void |
transform(ActionTransform trans,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the XML, converts it into a DOM node, and stores it in the scope |
Methods inherited from class com.oroad.stxx.transform.AbstractSAXTransformer |
getFactory, writeXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_ATTRIBUTE_NAME
public static final java.lang.String DEFAULT_SCOPE
Constructor Detail |
public DOMWriteTransformer()
Method Detail |
public void init(java.lang.String name, StxxProperties props, javax.servlet.ServletContext context, BuilderRules rules)
init
in interface Transformer
init
in class AbstractSAXTransformer
name
- The name of the transformerprops
- The propertiescontext
- The servlet contextrules
- The Builder rulespublic void setCache(Cache cache, long expiryTime)
setCache
in interface Transformer
setCache
in class AbstractSAXTransformer
cache
- The cacheexpiryTime
- The expiration time for objects in millisecondspublic void transform(ActionTransform trans, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws TransformerException
transform
in interface Transformer
transform
in class AbstractSAXTransformer
trans
- The value object holding transformation
informationresponse
- The response objectrequest
- The request object
TransformerException
- If something goes wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |