com.caucho.server.webapp
Class WebAppFilterChain

java.lang.Object
  extended by com.caucho.server.dispatch.AbstractFilterChain
      extended by com.caucho.server.webapp.WebAppFilterChain
All Implemented Interfaces:
CometFilterChain, FilterChain

public class WebAppFilterChain
extends AbstractFilterChain

Represents the next filter in a filter chain. The final filter will be the servlet itself.


Constructor Summary
WebAppFilterChain(FilterChain next, WebApp app)
          Creates a new FilterChainFilter.
WebAppFilterChain(FilterChain next, WebApp app, boolean isTop)
          Creates a new FilterChainFilter.
 
Method Summary
 void doFilter(ServletRequest request, ServletResponse response)
          Invokes the next filter in the chain or the final servlet at the end of the chain.
 boolean doResume(ServletRequest request, ServletResponse response)
          Resumes the request for comet-style.
 FilterChain getNext()
          Returns true if cacheable.
 void setSecurityRoleMap(java.util.HashMap<java.lang.String,java.lang.String> map)
          Sets the security map.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebAppFilterChain

public WebAppFilterChain(FilterChain next,
                         WebApp app)
Creates a new FilterChainFilter.

Parameters:
next - the next filterChain
filter - the user's filter

WebAppFilterChain

public WebAppFilterChain(FilterChain next,
                         WebApp app,
                         boolean isTop)
Creates a new FilterChainFilter.

Parameters:
next - the next filterChain
filter - the user's filter
Method Detail

setSecurityRoleMap

public void setSecurityRoleMap(java.util.HashMap<java.lang.String,java.lang.String> map)
Sets the security map.


getNext

public FilterChain getNext()
Returns true if cacheable.


doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response)
              throws ServletException,
                     java.io.IOException
Invokes the next filter in the chain or the final servlet at the end of the chain.

Parameters:
request - the servlet request
response - the servlet response
Throws:
ServletException
java.io.IOException
Since:
Servlet 2.3

doResume

public boolean doResume(ServletRequest request,
                        ServletResponse response)
                 throws ServletException,
                        java.io.IOException
Resumes the request for comet-style.

Specified by:
doResume in interface CometFilterChain
Overrides:
doResume in class AbstractFilterChain
Parameters:
request - the servlet request
response - the servlet response
Returns:
true for keepalive, false for the end of the request
Throws:
ServletException
java.io.IOException
Since:
Resin 3.1.3

toString

public java.lang.String toString()
Overrides:
toString in class AbstractFilterChain