obixserver.servlet
Class XmlFilter
java.lang.Object
obixserver.servlet.XmlFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class XmlFilter
- extends Object
- implements javax.servlet.Filter
Servlet to enable Winstone to set text/xml content-type for
xsl files.
This can be removed once I find how to set winstone
to do this via configuration.
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Times the execution of the rest of the filter chain, optionally dumping
the request parameters to the servlet context log |
void |
init(javax.servlet.FilterConfig config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
path
private String path
context
private javax.servlet.ServletContext context
XmlFilter
public XmlFilter()
init
public void init(javax.servlet.FilterConfig config)
- Specified by:
init
in interface javax.servlet.Filter
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Times the execution of the rest of the filter chain, optionally dumping
the request parameters to the servlet context log
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2006-2008 Peter Michalek All Rights Reserved.