public abstract class XSLTFilter extends AbstractFilter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
PREFERRED_CHARACTER_ENCODING
Preferred character encoding.
|
| Constructor and Description |
|---|
XSLTFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
protected abstract String |
getOutputCharacterEncoding()
Returns output character encoding.
|
protected abstract String |
getOutputContentType()
Returns output content type.
|
protected abstract URL |
getStylesheetResource()
Returns stylesheet resource.
|
protected TransformerFactory |
getTransformerFactory()
Returns a
TransformerFactory instance. |
protected void |
getTransformerOutputProperties(Properties properties)
Fills output properties for the Transformer.
|
protected abstract void |
getTransformerParameters(Map<String,Object> parameters)
Fills parameters for the Transformer.
|
destroy, getFilterConfig, getServletContext, init, log, logprotected static final String PREFERRED_CHARACTER_ENCODING
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected void getTransformerOutputProperties(Properties properties)
properties - output properties to be filledprotected abstract void getTransformerParameters(Map<String,Object> parameters)
parameters - parameters to be filledprotected abstract URL getStylesheetResource() throws IOException
IOException - if an I/O error occurs.protected abstract String getOutputContentType()
protected abstract String getOutputCharacterEncoding()
protected TransformerFactory getTransformerFactory()
TransformerFactory instance. The default
implementation returns TransformerFactory.newInstance(). Override
this method if you want to use a custom factory.Copyright © 2011-2013. All Rights Reserved.