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 boolean
Determines whether or not the result should allow caching. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ErrorListener
protected TransformerFactory
void
execute
(ActionInvocation invocation) protected AdapterFactory
protected Source
getDOMSourceForStack
(Object value) protected Templates
getTemplates
(String path) protected URIResolver
protected void
setAdapterFactory
(AdapterFactory adapterFactory) void
setEncoding
(String encoding) void
setExposedValue
(String exposedValue) void
setNoCache
(String xsltNoCache) void
setParse
(boolean parse) void
void
setStylesheetLocation
(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:
TransformerException
IOException
-
getDOMSourceForStack
-