Package org.apache.struts2.result.xslt
Class XSLTResult
java.lang.Object
org.apache.struts2.result.xslt.XSLTResult
- All Implemented Interfaces:
Serializable,Result
XSLTResult uses XSLT to transform an action object to XML.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String'stylesheetLocation' parameter.protected booleanDetermines whether or not the result should allow caching. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ErrorListenerprotected TransformerFactoryvoidexecute(ActionInvocation invocation) protected AdapterFactoryprotected SourcegetDOMSourceForStack(Object value) protected TemplatesgetTemplates(String path) protected URIResolverprotected voidsetAdapterFactory(AdapterFactory adapterFactory) voidsetEncoding(String encoding) voidsetExposedValue(String exposedValue) voidsetNoCache(String xsltNoCache) voidsetParse(boolean parse) voidvoidsetStylesheetLocation(String location)
-
Field Details
-
DEFAULT_PARAM
'stylesheetLocation' parameter. Points to the xsl.- See Also:
-
noCache
protected boolean noCacheDetermines whether or not the result should allow caching.
-
-
Constructor Details
-
XSLTResult
public XSLTResult() -
XSLTResult
-
-
Method Details
-
setNoCache
-
setStylesheetLocation
-
getStylesheetLocation
-
getExposedValue
-
setExposedValue
-
getStatus
-
setStatus
-
getEncoding
-
setEncoding
-
setParse
public void setParse(boolean parse) - Parameters:
parse- if true, parse the stylesheet location for OGNL expressions.
-
execute
-
createTransformerFactory
-
buildErrorListener
-
getAdapterFactory
-
setAdapterFactory
-
getURIResolver
- Returns:
- the URI Resolver to be called by the processor when it encounters an xsl:include, xsl:import, or document() function. The default is an instance of ServletURIResolver, which operates relative to the servlet context.
-
getTemplates
- Throws:
TransformerExceptionIOException
-
getDOMSourceForStack
-