org.mortbay.jetty.servlet

Class JSR154Filter

Implemented Interfaces:
Filter

public class JSR154Filter
extends java.lang.Object
implements 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: The boolean init parameter "unwrappedDispatched"

Method Summary

void
destroy()
void
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
org.mortbay.jetty.servlet.Dispatcher.DispatcherRequest
getDispatchRequest()
void
init(FilterConfig filterConfig)
boolean
isUnwrappedDispatchSupported()
void
setDispatch(org.mortbay.jetty.servlet.Dispatcher.DispatcherRequest request, org.mortbay.jetty.servlet.Dispatcher.DispatcherResponse response)
protected void
setRequestAttributeListeners(Object list)
protected void
setRequestListeners(Object list)
void
setUnwrappedDispatchSupported(boolean supportUnwrappedDispatch)

Method Details

destroy

public void destroy()
Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
            throws IOException,
                   ServletException
Specified by:
doFilter in interface Filter

getDispatchRequest

public org.mortbay.jetty.servlet.Dispatcher.DispatcherRequest getDispatchRequest()

init

public void init(FilterConfig filterConfig)
            throws ServletException
Specified by:
init in interface Filter

isUnwrappedDispatchSupported

public boolean isUnwrappedDispatchSupported()

setDispatch

public void setDispatch(org.mortbay.jetty.servlet.Dispatcher.DispatcherRequest request,
                        org.mortbay.jetty.servlet.Dispatcher.DispatcherResponse response)

setRequestAttributeListeners

protected void setRequestAttributeListeners(Object list)

setRequestListeners

protected void setRequestListeners(Object list)

setUnwrappedDispatchSupported

public void setUnwrappedDispatchSupported(boolean supportUnwrappedDispatch)
Parameters:
supportUnwrappedDispatch - The supportUnwrappedDispatch to set.

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.