public class JettyContinuationWrapper extends Object implements Continuation
| Constructor and Description |
|---|
JettyContinuationWrapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp,
Message m) |
| Modifier and Type | Method and Description |
|---|---|
protected Message |
getMessage() |
Object |
getObject()
Get arbitrary object associated with the continuation for context
|
boolean |
isNew()
Is this a newly created Continuation.
|
boolean |
isPending()
Get the pending status
|
boolean |
isResumed()
Get the resumed status
|
void |
onComplete(org.eclipse.jetty.continuation.Continuation cont) |
void |
onTimeout(org.eclipse.jetty.continuation.Continuation cont) |
void |
reset()
Reset the continuation
|
void |
resume()
Resume a suspended request
|
void |
setObject(Object userObject)
Sets arbitrary object associated with the continuation for context
|
boolean |
suspend(long timeout)
This method will suspend the request for the timeout or until resume is
called
|
public JettyContinuationWrapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp,
Message m)
public Object getObject()
ContinuationgetObject in interface Continuationpublic void setObject(Object userObject)
ContinuationsetObject in interface ContinuationuserObject - An arbitrary object to associate with the continuationpublic void resume()
Continuationresume in interface Continuationpublic boolean isNew()
ContinuationisNew in interface Continuationpublic boolean isPending()
ContinuationisPending in interface Continuationpublic boolean isResumed()
ContinuationisResumed in interface Continuationpublic void reset()
Continuationreset in interface Continuationpublic boolean suspend(long timeout)
Continuationsuspend in interface Continuationtimeout - A timeout of < 0 will cause an immediate return.
A timeout of 0 will wait indefinitely.protected Message getMessage()
public void onComplete(org.eclipse.jetty.continuation.Continuation cont)
public void onTimeout(org.eclipse.jetty.continuation.Continuation cont)
Apache CXF