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 SummaryFieldsModifier and TypeFieldDescriptionstatic final String'stylesheetLocation' parameter.protected booleanDetermines whether or not the result should allow caching.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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:
 
- 
noCacheprotected boolean noCacheDetermines whether or not the result should allow caching.
 
- 
- 
Constructor Details- 
XSLTResultpublic XSLTResult()
- 
XSLTResult
 
- 
- 
Method Details- 
setNoCache
- 
setStylesheetLocation
- 
getStylesheetLocation
- 
getExposedValue
- 
setExposedValue
- 
getStatus
- 
setStatus
- 
getEncoding
- 
setEncoding
- 
setParsepublic 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
 
-