org.directwebremoting.server.jetty
Class JettyContinuationSleeper

java.lang.Object
  extended by org.directwebremoting.impl.BaseSleeper
      extended by org.directwebremoting.server.jetty.JettyContinuationSleeper
All Implemented Interfaces:
java.io.Serializable, Sleeper

public class JettyContinuationSleeper
extends BaseSleeper

A Sleeper that works with Jetty Continuations

Author:
Joe Walker [joe at getahead dot ltd dot uk], Tim Peierls [tim at peierls dot net], Mike Wilson
See Also:
Serialized Form

Constructor Summary
JettyContinuationSleeper(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RealScriptSession scriptSession, ScriptConduit conduit)
           
 
Method Summary
static JettyContinuationSleeper getSleeper(javax.servlet.http.HttpServletRequest request)
          Retrieve a stashed sleeper from a request.
 void resumeWork()
          The method that should be called by a background thread when we are being awakened
 
Methods inherited from class org.directwebremoting.impl.BaseSleeper
enterSleep, setConverterManager, setJsonOutput, wakeUpForData, wakeUpToClose
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyContinuationSleeper

public JettyContinuationSleeper(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                RealScriptSession scriptSession,
                                ScriptConduit conduit)
                         throws java.io.IOException
Parameters:
request - The request into which we store this as an attribute
conduit -
scriptSession -
response -
Throws:
java.io.IOException
Method Detail

resumeWork

public void resumeWork()
The method that should be called by a background thread when we are being awakened


getSleeper

public static JettyContinuationSleeper getSleeper(javax.servlet.http.HttpServletRequest request)
Retrieve a stashed sleeper from a request.


Copyright ยจ 2008