|
||||||||||
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 Ajax Continuations
Constructor Summary | |
---|---|
Continuation(javax.servlet.http.HttpServletRequest request)
Fish the Jetty continuation out of the request if it exists |
Method Summary | |
---|---|
java.lang.Object |
getObject()
Accessor for the object associated with this continuation |
boolean |
isAvailable()
Are continuations working? If this method returns false then all the other methods will fail. |
static boolean |
isJetty()
|
void |
resume()
Resume an continuation. |
static void |
rethrowIfContinuation(java.lang.Throwable th)
We shouldn't be catching Jetty RetryRequests so we rethrow them. |
void |
setObject(java.lang.Object object)
Accessor for the object associated with this continuation |
void |
suspend(long sleepTime)
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 requestMethod Detail |
---|
public boolean isAvailable()
public void suspend(long sleepTime) throws java.lang.Exception
sleepTime
- The maximum time to wait
java.lang.Exception
- If reflection breakspublic void resume() throws java.lang.Exception
java.lang.Exception
- If reflection breakspublic java.lang.Object getObject() throws java.lang.Exception
java.lang.Exception
- If reflection breakspublic void setObject(java.lang.Object object) throws java.lang.Exception
object
- the object associated with this continuation
java.lang.Exception
- If reflection breakspublic static void rethrowIfContinuation(java.lang.Throwable th)
th
- The exception to test for continuation-nesspublic static boolean isJetty()
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |