| |
|
| java.lang.Object org.directwebremoting.util.Continuation
Continuation | public class Continuation (Code) | | A wrapper around Jetty Ajax Continuations
author: Joe Walker [joe at getahead dot ltd dot uk] |
continuationClass | protected static Class> continuationClass(Code) | | Jetty code used by reflection to allow it to run outside of Jetty
|
getObject | protected static Method getObject(Code) | | How we get the associated continuation object
|
isGrizzly | protected static boolean isGrizzly(Code) | | Are we using Grizzly at all?
|
isJetty | protected static boolean isJetty(Code) | | Are we using Jetty at all?
|
resumeMethod | protected static Method resumeMethod(Code) | | How we resume the continuation
|
setObject | protected static Method setObject(Code) | | How we set the associated continuation object
|
suspendMethod | protected static Method suspendMethod(Code) | | How we suspend the continuation
|
Continuation | public Continuation(HttpServletRequest request)(Code) | | Fish the Jetty continuation out of the request if it exists
Parameters: request - The http request |
getObject | public Object getObject() throws Exception(Code) | | Accessor for the object associated with this continuation
the object associated with this continuation throws: Exception - If reflection breaks |
isAvailable | public boolean isAvailable()(Code) | | Are continuations working?
If this method returns false then all the other methods will fail.
true if Jetty continuations are working |
isGrizzly | public static boolean isGrizzly()(Code) | | True if we have detected Grizzly classes |
isJetty | public static boolean isJetty()(Code) | | True if we have detected Jetty classes |
resume | public void resume() throws Exception(Code) | | Resume an continuation.
For Jetty: does not work like a real continuation because it restarts
the http request.
throws: Exception - If reflection breaks |
rethrowIfContinuation | public static void rethrowIfContinuation(Throwable th)(Code) | | We shouldn't be catching Jetty RetryRequests so we rethrow them.
Parameters: th - The exception to test for continuation-ness |
setObject | public void setObject(Object object) throws Exception(Code) | | Accessor for the object associated with this continuation
Parameters: object - the object associated with this continuation throws: Exception - If reflection breaks |
suspend | public void suspend(long sleepTime) throws Exception(Code) | | Suspend the thread for a maximum of sleepTime milliseconds
Parameters: sleepTime - The maximum time to wait throws: Exception - If reflection breaks |
|
|
|