Class ContinuationFilter

java.lang.Object
org.eclipse.jetty.continuation.ContinuationFilter
All Implemented Interfaces:
javax.servlet.Filter

@Deprecated public class ContinuationFilter extends Object implements javax.servlet.Filter
Deprecated.
use Servlet 3.0 AsyncContext instead

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):

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 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

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Deprecated.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static boolean
    Deprecated.
     
    (package private) javax.servlet.ServletContext
    Deprecated.
     
    private boolean
    Deprecated.
     
    private boolean
    Deprecated.
     
    private boolean
    Deprecated.
     
    (package private) static boolean
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    debug(String string)
    Deprecated.
     
    private void
    debug(String string, Throwable th)
    Deprecated.
     
    void
    Deprecated.
     
    void
    doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
    Deprecated.
     
    void
    init(javax.servlet.FilterConfig filterConfig)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _initialized

      static boolean _initialized
      Deprecated.
    • __debug

      static boolean __debug
      Deprecated.
    • _faux

      private boolean _faux
      Deprecated.
    • _filtered

      private boolean _filtered
      Deprecated.
    • _context

      javax.servlet.ServletContext _context
      Deprecated.
    • _debug

      private boolean _debug
      Deprecated.
  • Constructor Details

    • ContinuationFilter

      public ContinuationFilter()
      Deprecated.
  • Method Details

    • init

      public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Deprecated.
      Specified by:
      init in interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException
    • doFilter

      public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Deprecated.
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException
    • debug

      private void debug(String string)
      Deprecated.
    • debug

      private void debug(String string, Throwable th)
      Deprecated.
    • destroy

      public void destroy()
      Deprecated.
      Specified by:
      destroy in interface javax.servlet.Filter