Package org.apache.cxf.jaxrs.impl
Class AsyncResponseImpl
java.lang.Object
org.apache.cxf.jaxrs.impl.AsyncResponseImpl
- All Implemented Interfaces:
jakarta.ws.rs.container.AsyncResponse,ContinuationCallback
public class AsyncResponseImpl
extends Object
implements jakarta.ws.rs.container.AsyncResponse, ContinuationCallback
-
Field Summary
Fields inherited from interface jakarta.ws.rs.container.AsyncResponse
NO_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()booleancancel(int retryAfter) booleanvoidbooleanbooleanisDone()booleanbooleanvoidThis method is called when the container completes writing the response to the clientvoidThis method may be called if the container detects that the client has disconnectedvoidThis method is called when the exception gets propagated to the containervoidCollection<Class<?>>Map<Class<?>,Collection<Class<?>>> Collection<Class<?>>Map<Class<?>,Collection<Class<?>>> voidreset()booleanbooleanbooleansetTimeout(long time, TimeUnit unit) voidsetTimeoutHandler(jakarta.ws.rs.container.TimeoutHandler handler) voidboolean
-
Constructor Details
-
AsyncResponseImpl
-
-
Method Details
-
resume
- Specified by:
resumein interfacejakarta.ws.rs.container.AsyncResponse
-
resume
- Specified by:
resumein interfacejakarta.ws.rs.container.AsyncResponse
-
cancel
public boolean cancel()- Specified by:
cancelin interfacejakarta.ws.rs.container.AsyncResponse
-
cancel
public boolean cancel(int retryAfter) - Specified by:
cancelin interfacejakarta.ws.rs.container.AsyncResponse
-
cancel
- Specified by:
cancelin interfacejakarta.ws.rs.container.AsyncResponse
-
isSuspended
public boolean isSuspended()- Specified by:
isSuspendedin interfacejakarta.ws.rs.container.AsyncResponse
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfacejakarta.ws.rs.container.AsyncResponse
-
isDone
public boolean isDone()- Specified by:
isDonein interfacejakarta.ws.rs.container.AsyncResponse
-
setTimeout
- Specified by:
setTimeoutin interfacejakarta.ws.rs.container.AsyncResponse- Throws:
IllegalStateException
-
setTimeoutHandler
public void setTimeoutHandler(jakarta.ws.rs.container.TimeoutHandler handler) - Specified by:
setTimeoutHandlerin interfacejakarta.ws.rs.container.AsyncResponse
-
register
- Specified by:
registerin interfacejakarta.ws.rs.container.AsyncResponse- Throws:
NullPointerException
-
register
public Map<Class<?>,Collection<Class<?>>> register(Class<?> callback, Class<?>... callbacks) throws NullPointerException - Specified by:
registerin interfacejakarta.ws.rs.container.AsyncResponse- Throws:
NullPointerException
-
register
- Specified by:
registerin interfacejakarta.ws.rs.container.AsyncResponse- Throws:
NullPointerException
-
register
public Map<Class<?>,Collection<Class<?>>> register(Object callback, Object... callbacks) throws NullPointerException - Specified by:
registerin interfacejakarta.ws.rs.container.AsyncResponse- Throws:
NullPointerException
-
onComplete
public void onComplete()Description copied from interface:ContinuationCallbackThis method is called when the container completes writing the response to the client- Specified by:
onCompletein interfaceContinuationCallback
-
onError
Description copied from interface:ContinuationCallbackThis method is called when the exception gets propagated to the container- Specified by:
onErrorin interfaceContinuationCallback- Parameters:
error- the propagated exception instance
-
onDisconnect
public void onDisconnect()Description copied from interface:ContinuationCallbackThis method may be called if the container detects that the client has disconnected- Specified by:
onDisconnectin interfaceContinuationCallback
-
suspendContinuationIfNeeded
public boolean suspendContinuationIfNeeded() -
getResponseObject
-
isResumedByApplication
public boolean isResumedByApplication() -
handleTimeout
public void handleTimeout() -
prepareContinuation
public void prepareContinuation() -
setUnmappedThrowable
-
reset
public void reset()
-