AsyncContext
instead@Deprecated
public class ContinuationFilter
extends java.lang.Object
implements javax.servlet.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
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
__debug
Deprecated.
|
(package private) javax.servlet.ServletContext |
_context
Deprecated.
|
private boolean |
_debug
Deprecated.
|
private boolean |
_faux
Deprecated.
|
private boolean |
_filtered
Deprecated.
|
(package private) static boolean |
_initialized
Deprecated.
|
Constructor and Description |
---|
ContinuationFilter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private void |
debug(java.lang.String string)
Deprecated.
|
private void |
debug(java.lang.String string,
java.lang.Throwable th)
Deprecated.
|
void |
destroy()
Deprecated.
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Deprecated.
|
void |
init(javax.servlet.FilterConfig filterConfig)
Deprecated.
|
static boolean _initialized
static boolean __debug
private boolean _faux
private boolean _filtered
javax.servlet.ServletContext _context
private boolean _debug
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
private void debug(java.lang.String string)
private void debug(java.lang.String string, java.lang.Throwable th)
public void destroy()
destroy
in interface javax.servlet.Filter