|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.ejtools.servlet.http.XSLFilter
HTTP Servlet filter that applies a XSL stylesheet on a XML stream.
| Field Summary | |
protected javax.servlet.FilterConfig |
config
Filter configuration |
protected java.lang.String |
contentType
Content type of the output |
protected static org.apache.log4j.Logger |
logger
Log4j Logger |
protected java.lang.String |
stylePath
Absolute path the stylesheet |
protected javax.xml.transform.Transformer |
transformer
XSL transformer |
| Constructor Summary | |
XSLFilter()
|
|
| Method Summary | |
void |
destroy()
Destroy the filter |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Main method of the filter |
void |
init(javax.servlet.FilterConfig config)
Performs the initialization of the filter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.servlet.FilterConfig config
protected java.lang.String contentType
protected java.lang.String stylePath
protected javax.xml.transform.Transformer transformer
protected static org.apache.log4j.Logger logger
| Constructor Detail |
public XSLFilter()
| Method Detail |
public void destroy()
destroy in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterrequest - Incoming requestresponse - Outgoing responsechain - Filter chain to forward the request and the response
java.io.IOException - In case of error
javax.servlet.ServletException - In case of error
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterconfig - The filter configuration
javax.servlet.ServletException - Exception thrown if the filter was not properly configured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||