org.springframework.web.servlet.ViewResolver implementation that
resolves instances of XsltView by translating the supplied view name
into the URL of the XSLT stylesheet.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ErrorListener | |
| private boolean | |
| private Properties | |
| private String | |
| private URIResolver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractUrlBasedView | buildView(String
the name of the view to build viewName)Overrides org. Creates a new View instance of the specified view class and configures it. |
| protected AbstractUrlBasedView | instantiateView()
Overrides org. Instantiate the specified view class. |
| protected Class | requiredViewClass()
Overrides org. Return the required type of view for this resolver. |
| public void | |
| public void | setErrorListener(ErrorListener errorListener)
Set an implementation of the |
| public void | setIndent(boolean indent)
Set whether the XSLT transformer may add additional whitespace when outputting the result tree. |
| public void | setOutputProperties(Properties outputProperties)
Set arbitrary transformer output properties to be applied to the stylesheet. |
| public void | |
| public void |
| cacheTemplates | back to summary |
|---|---|
| private boolean cacheTemplates | |
| errorListener | back to summary |
|---|---|
| private ErrorListener errorListener
| |
| indent | back to summary |
|---|---|
| private boolean indent | |
| outputProperties | back to summary |
|---|---|
| private Properties outputProperties
| |
| sourceKey | back to summary |
|---|---|
| private String sourceKey
| |
| uriResolver | back to summary |
|---|---|
| private URIResolver uriResolver
| |
| XsltViewResolver | back to summary |
|---|---|
| public XsltViewResolver() This resolver requires | |
| buildView | back to summary |
|---|---|
| protected AbstractUrlBasedView buildView(String viewName) throws Exception Overrides org. Doc from org. Creates a new View instance of the specified view class and configures it. Does not perform any lookup for pre-defined View instances. Spring lifecycle methods as defined by the bean container do not have to
be called here; those will be applied by the Subclasses will typically call
| |
| instantiateView | back to summary |
|---|---|
| protected AbstractUrlBasedView instantiateView() Overrides org. Doc from org. Instantiate the specified view class. The default implementation uses reflection to instantiate the class.
| |
| requiredViewClass | back to summary |
|---|---|
| protected Class Overrides org. Doc from org. Return the required type of view for this resolver.
This implementation returns
| |
| setCacheTemplates | back to summary |
|---|---|
| public void setCacheTemplates(boolean cacheTemplates) Turn on/off the caching of the XSLT templates. The default value is "true". Only set this to "false" in development, where caching does not seriously impact performance. | |
| setErrorListener | back to summary |
|---|---|
| public void setErrorListener(ErrorListener errorListener) Set an implementation of the If not set, a default
| |
| setIndent | back to summary |
|---|---|
| public void setIndent(boolean indent) Set whether the XSLT transformer may add additional whitespace when outputting the result tree. Default is | |
| setOutputProperties | back to summary |
|---|---|
| public void setOutputProperties(Properties outputProperties) Set arbitrary transformer output properties to be applied to the stylesheet. Any values specified here will override defaults that this view sets programmatically. | |
| setSourceKey | back to summary |
|---|---|
| public void setSourceKey(String sourceKey) Set the name of the model attribute that represents the XSLT Source. If not specified, the model map will be searched for a matching value type. The following source types are supported out of the box:
| |
| setUriResolver | back to summary |
|---|---|
| public void setUriResolver(URIResolver uriResolver) Set the URIResolver used in the transform. The URIResolver handles calls to the XSLT | |