public class AsyncResponseImpl extends Object implements javax.ws.rs.container.AsyncResponse, ContinuationCallback
| Constructor and Description |
|---|
AsyncResponseImpl(Message inMessage) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
cancel(Date retryAfter) |
void |
cancel(int retryAfter) |
Object |
getResponseObject() |
void |
handleTimeout() |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isResumedByApplication() |
boolean |
isSuspended() |
void |
onComplete() |
void |
onError(Throwable error) |
void |
prepareContinuation() |
boolean |
register(Class<?> callback) |
boolean[] |
register(Class<?> callback,
Class<?>... callbacks) |
boolean |
register(Object callback) |
boolean[] |
register(Object callback,
Object... callbacks) |
void |
reset() |
void |
resume(Object response) |
void |
resume(Throwable response) |
void |
setTimeout(long time,
TimeUnit unit) |
void |
setTimeoutHandler(javax.ws.rs.container.TimeoutHandler handler) |
void |
suspendContinuation() |
public AsyncResponseImpl(Message inMessage)
public void resume(Object response) throws IllegalStateException
resume in interface javax.ws.rs.container.AsyncResponseIllegalStateExceptionpublic void resume(Throwable response) throws IllegalStateException
resume in interface javax.ws.rs.container.AsyncResponseIllegalStateExceptionpublic void cancel()
cancel in interface javax.ws.rs.container.AsyncResponsepublic void cancel(int retryAfter)
cancel in interface javax.ws.rs.container.AsyncResponsepublic void cancel(Date retryAfter)
cancel in interface javax.ws.rs.container.AsyncResponsepublic boolean isSuspended()
isSuspended in interface javax.ws.rs.container.AsyncResponsepublic boolean isCancelled()
isCancelled in interface javax.ws.rs.container.AsyncResponsepublic boolean isDone()
isDone in interface javax.ws.rs.container.AsyncResponsepublic void setTimeout(long time,
TimeUnit unit)
throws IllegalStateException
setTimeout in interface javax.ws.rs.container.AsyncResponseIllegalStateExceptionpublic void setTimeoutHandler(javax.ws.rs.container.TimeoutHandler handler)
setTimeoutHandler in interface javax.ws.rs.container.AsyncResponsepublic boolean register(Class<?> callback) throws NullPointerException
register in interface javax.ws.rs.container.AsyncResponseNullPointerExceptionpublic boolean[] register(Class<?> callback, Class<?>... callbacks) throws NullPointerException
register in interface javax.ws.rs.container.AsyncResponseNullPointerExceptionpublic boolean register(Object callback) throws NullPointerException
register in interface javax.ws.rs.container.AsyncResponseNullPointerExceptionpublic boolean[] register(Object callback, Object... callbacks) throws NullPointerException
register in interface javax.ws.rs.container.AsyncResponseNullPointerExceptionpublic void onComplete()
onComplete in interface ContinuationCallbackpublic void onError(Throwable error)
onError in interface ContinuationCallbackpublic void suspendContinuation()
public Object getResponseObject()
public boolean isResumedByApplication()
public void handleTimeout()
public void prepareContinuation()
public void reset()
Apache CXF