Class ContinuationFilter
- java.lang.Object
-
- org.eclipse.jetty.continuation.ContinuationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
@Deprecated public class ContinuationFilter extends java.lang.Object implements javax.servlet.FilterDeprecated.use Servlet 3.0AsyncContextinsteadContinuationFilter must be applied to servlet paths that make use of the asynchronous features provided by
ContinuationAPIs, 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):
- debug
- Boolean controlling debug output
- faux
- Boolean to force use of faux continuations
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 whenContinuation.resume()orContinuation.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContinuationFilter.FilteredContinuationDeprecated.
-
Constructor Summary
Constructors Constructor Description ContinuationFilter()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddestroy()Deprecated.voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)Deprecated.voidinit(javax.servlet.FilterConfig filterConfig)Deprecated.
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletExceptionDeprecated.- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletExceptionDeprecated.- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
destroy
public void destroy()
Deprecated.- Specified by:
destroyin interfacejavax.servlet.Filter
-
-