org.eclipse.jetty.continuation
Class ContinuationFilter

java.lang.Object
  extended by org.eclipse.jetty.continuation.ContinuationFilter
All Implemented Interfaces:
Filter

public class ContinuationFilter
extends Object
implements Filter

ContinuationFilter must be applied to servlet paths that make use of the asynchronous features provided by ContinuationFilter.FilteredContinuation APIs, but that are deployed in servlet containers that are neither Jetty (>= 7) nor 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
jetty6
Boolean to force use of Jetty 6 continuations
faux
Boolean to force use of faux continuations

If the servlet container is not Jetty (either 6 or 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.


Nested Class Summary
static interface ContinuationFilter.FilteredContinuation
           
 
Constructor Summary
ContinuationFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuationFilter

public ContinuationFilter()
Method Detail

init

public void init(FilterConfig filterConfig)
          throws ServletException
Specified by:
init in interface Filter
Throws:
ServletException

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

destroy

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


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.