com.caucho.server.dispatch
Class CometServletFilterChain

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

public class CometServletFilterChain
extends AbstractFilterChain

Represents the final servlet in a filter chain.


Field Summary
static java.lang.String SERVLET_NAME
           
 
Constructor Summary
CometServletFilterChain(ServletConfigImpl config)
          Create the filter chain servlet.
 
Method Summary
 void doFilter(ServletRequest request, ServletResponse response)
          Invokes the final servlet at the end of the chain.
 boolean doResume(ServletRequest request, ServletResponse response)
          Resumes the final servlet for a comet request.
 java.util.HashMap<java.lang.String,java.lang.String> getRoleMap()
          Returns the role map.
 java.lang.String getServletName()
          Returns the servlet name.
 
Methods inherited from class com.caucho.server.dispatch.AbstractFilterChain
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVLET_NAME

public static java.lang.String SERVLET_NAME
Constructor Detail

CometServletFilterChain

public CometServletFilterChain(ServletConfigImpl config)
Create the filter chain servlet.

Parameters:
servlet - the underlying servlet
Method Detail

getServletName

public java.lang.String getServletName()
Returns the servlet name.


getRoleMap

public java.util.HashMap<java.lang.String,java.lang.String> getRoleMap()
Returns the role map.


doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response)
              throws ServletException,
                     java.io.IOException
Invokes 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 final servlet for a comet request.

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