Package org.atmosphere.cpr
Class AtmosphereFilter
java.lang.Object
org.atmosphere.cpr.AtmosphereFilter
- All Implemented Interfaces:
Filter
Atmosphere has support for
Filters, delegating all work to AtmosphereServlet. This Filter
only works with Jetty and Grizzly/GlassFish. With other containers it will use its BlockingIOCometSupport.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(ServletRequest request, ServletResponse response, FilterChain chain) Normal doFilter invocation.voidinit(FilterConfig filterConfig) Initialize theFilter.
-
Constructor Details
-
AtmosphereFilter
public AtmosphereFilter()
-
-
Method Details
-
init
Initialize theFilter.- Specified by:
initin interfaceFilter- Parameters:
filterConfig- TheFilterConfig- Throws:
ServletException
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException Normal doFilter invocation.- Specified by:
doFilterin interfaceFilter- Throws:
IOExceptionServletException
-
destroy
public void destroy()
-