org.atmosphere.cpr
Class AtmosphereFilter

java.lang.Object
  extended by org.atmosphere.cpr.AtmosphereFilter
All Implemented Interfaces:
Filter

public class AtmosphereFilter
extends Object
implements Filter

Atmosphere supports for Filter, delegating all works to AtmosphereServlet. This Filter only works with Jetty and Grizzly/GlassFish. With others containers it will use its BlockingIOCometSupport.

Author:
Jeanfrancois Arcand

Constructor Summary
AtmosphereFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          Normal doFilter invokation.
 void init(FilterConfig filterConfig)
          Initialize the Filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtmosphereFilter

public AtmosphereFilter()
Method Detail

init

public void init(FilterConfig filterConfig)
          throws ServletException
Initialize the Filter

Specified by:
init in interface Filter
Parameters:
filterConfig -
Throws:
ServletException

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Normal doFilter invokation.

Specified by:
doFilter in interface Filter
Parameters:
request -
response -
chain -
Throws:
IOException
ServletException

destroy

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


Copyright © 2009 SUN Microsystems. All Rights Reserved.