org.openqa.jetty.jetty.servlet
Class JSR154Filter
java.lang.Object
org.openqa.jetty.jetty.servlet.JSR154Filter
- All Implemented Interfaces:
- javax.servlet.Filter
public class JSR154Filter
- extends java.lang.Object
- implements javax.servlet.Filter
JSR 154 Stupidness filter.
This filter contains the elements of the JSR154 servlet 2.4 specification
that are too objectionable to include in the core of Jetty. Thus they have
been added as a filter that can be removed from the defaultweb.xml file if
none of the following "features" are required:
- RequestAttributeListeners. If you actually have a real use for these, please
tell the jetty lists what they are and why you can't use a normal filter/wrapper for
this?
- SRV.6.2.2 Dispatachers where the container cannot wrap the request or
response. See http://jetty.mortbay.org/jetty/doc/servlet24.html#d0e711
to find out why this is stupid.
The boolean init parameter "unwrappedDispatched"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSR154Filter
public JSR154Filter()
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
setRequestAttributeListeners
protected void setRequestAttributeListeners(java.lang.Object list)
setRequestListeners
protected void setRequestListeners(java.lang.Object list)
isUnwrappedDispatchSupported
public boolean isUnwrappedDispatchSupported()
setUnwrappedDispatchSupported
public void setUnwrappedDispatchSupported(boolean supportUnwrappedDispatch)
- Parameters:
supportUnwrappedDispatch
- The supportUnwrappedDispatch to set.
setDispatch
public void setDispatch(org.openqa.jetty.jetty.servlet.Dispatcher.DispatcherRequest request,
org.openqa.jetty.jetty.servlet.Dispatcher.DispatcherResponse response)
getDispatchRequest
public org.openqa.jetty.jetty.servlet.Dispatcher.DispatcherRequest getDispatchRequest()
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
java.io.IOException
javax.servlet.ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
Copyright © 2011. All Rights Reserved.