|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.util.Continuation
public class Continuation
A wrapper around Jetty and Grizzly Ajax Continuations
| Constructor Summary | |
|---|---|
Continuation(javax.servlet.http.HttpServletRequest request)
Fish the continuation out of the request if it exists. |
|
| Method Summary | |
|---|---|
boolean |
isAvailable()
Are continuations working? If this method returns false then all the other methods will fail. |
static boolean |
isGrizzly()
|
static boolean |
isJetty()
|
void |
resume()
Resume a continuation. |
static void |
rethrowIfContinuation(java.lang.Throwable th)
We shouldn't be catching Jetty RetryRequests so we re-throw them. |
void |
suspend()
Suspend the thread for a maximum of sleepTime milliseconds |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Continuation(javax.servlet.http.HttpServletRequest request)
request - The http request| Method Detail |
|---|
public boolean isAvailable()
public void suspend()
throws java.lang.Exception
java.lang.Exception - If reflection breaks
public void resume()
throws java.lang.Exception
java.lang.Exception - If reflection breakspublic static void rethrowIfContinuation(java.lang.Throwable th)
th - The exception to test for continuation-nesspublic static boolean isJetty()
public static boolean isGrizzly()
|
Copyright ¨ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||