public class ContinuationFilter extends Object implements Filter
ContinuationFilter must be applied to servlet paths that make use of
the asynchronous features provided by Continuation APIs, but that
are deployed in servlet containers that are a
compliant Servlet 3.0 container.
The following init parameters may be used to configure the filter (these are mostly for testing):
If the servlet container is not Jetty 7+ nor a Servlet 3 container, then "faux" continuations will be used.
Faux continuations will just put the thread that called Continuation.suspend()
in wait, and will notify that thread when Continuation.resume() or
Continuation.complete() is called.
Faux continuations are not threadless continuations (they are "faux" - fake - for this reason) and as such they will scale less than proper continuations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContinuationFilter.FilteredContinuation |
| Constructor and Description |
|---|
ContinuationFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
void |
init(FilterConfig filterConfig) |
public void init(FilterConfig filterConfig) throws ServletException
init in interface FilterServletExceptionpublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter in interface FilterIOExceptionServletExceptionCopyright © 1995-2015 Webtide. All Rights Reserved.