Class AbstractAsynchronousResponse
java.lang.Object
org.jboss.resteasy.core.AbstractAsynchronousResponse
- All Implemented Interfaces:
jakarta.ws.rs.container.AsyncResponse
,ResourceMethodInvokerAwareResponse
,ResteasyAsynchronousResponse
- Direct Known Subclasses:
SynchronousExecutionContext.SynchronousAsynchronousResponse
public abstract class AbstractAsynchronousResponse
extends Object
implements ResteasyAsynchronousResponse, ResourceMethodInvokerAwareResponse
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionprotected Annotation[]
protected AsyncWriterInterceptor[]
protected List
<jakarta.ws.rs.container.CompletionCallback> protected SynchronousDispatcher
protected ResourceMethodInvoker
protected HttpRequest
protected HttpResponse
protected jakarta.ws.rs.container.ContainerResponseFilter[]
protected jakarta.ws.rs.container.TimeoutHandler
protected jakarta.ws.rs.ext.WriterInterceptor[]
Fields inherited from interface jakarta.ws.rs.container.AsyncResponse
NO_TIMEOUT
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractAsynchronousResponse
(SynchronousDispatcher dispatcher, HttpRequest request, HttpResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoid
completionCallbacks
(Throwable throwable) jakarta.ws.rs.container.ContainerResponseFilter[]
jakarta.ws.rs.ext.WriterInterceptor[]
protected boolean
internalResume
(Object entity) Deprecated.protected boolean
internalResume
(Object entity, Consumer<Throwable> onComplete) protected boolean
internalResume
(Throwable exc) Deprecated.protected boolean
internalResume
(Throwable exc, Consumer<Throwable> onComplete) Collection
<Class<?>> Map
<Class<?>, Collection<Class<?>>> Collection
<Class<?>> Map
<Class<?>, Collection<Class<?>>> void
setAnnotations
(Annotation[] annotations) void
setMethod
(ResourceMethodInvoker method) void
setResponseFilters
(jakarta.ws.rs.container.ContainerResponseFilter[] responseFilters) void
setTimeoutHandler
(jakarta.ws.rs.container.TimeoutHandler handler) void
setWriterInterceptors
(jakarta.ws.rs.ext.WriterInterceptor[] writerInterceptors) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.container.AsyncResponse
cancel, cancel, cancel, isCancelled, isDone, isSuspended, resume, resume, setTimeout
Methods inherited from interface org.jboss.resteasy.spi.ResteasyAsynchronousResponse
complete, initialRequestThreadFinished
-
Field Details
-
dispatcher
-
method
-
request
-
response
-
responseFilters
protected jakarta.ws.rs.container.ContainerResponseFilter[] responseFilters -
writerInterceptors
protected jakarta.ws.rs.ext.WriterInterceptor[] writerInterceptors -
asyncWriterInterceptors
-
annotations
-
timeoutHandler
protected jakarta.ws.rs.container.TimeoutHandler timeoutHandler -
completionCallbacks
-
contextDataMap
-
-
Constructor Details
-
AbstractAsynchronousResponse
protected AbstractAsynchronousResponse(SynchronousDispatcher dispatcher, HttpRequest request, HttpResponse response)
-
-
Method Details
-
register
- Specified by:
register
in interfacejakarta.ws.rs.container.AsyncResponse
- Throws:
NullPointerException
-
register
- Specified by:
register
in interfacejakarta.ws.rs.container.AsyncResponse
- Throws:
NullPointerException
-
register
public Map<Class<?>,Collection<Class<?>>> register(Class<?> callback, Class<?>... callbacks) throws NullPointerException - Specified by:
register
in interfacejakarta.ws.rs.container.AsyncResponse
- Throws:
NullPointerException
-
register
public Map<Class<?>,Collection<Class<?>>> register(Object callback, Object... callbacks) throws NullPointerException - Specified by:
register
in interfacejakarta.ws.rs.container.AsyncResponse
- Throws:
NullPointerException
-
setTimeoutHandler
public void setTimeoutHandler(jakarta.ws.rs.container.TimeoutHandler handler) - Specified by:
setTimeoutHandler
in interfacejakarta.ws.rs.container.AsyncResponse
-
getMethod
- Specified by:
getMethod
in interfaceResourceMethodInvokerAwareResponse
-
setMethod
- Specified by:
setMethod
in interfaceResourceMethodInvokerAwareResponse
-
getResponseFilters
public jakarta.ws.rs.container.ContainerResponseFilter[] getResponseFilters()- Specified by:
getResponseFilters
in interfaceResteasyAsynchronousResponse
-
setResponseFilters
public void setResponseFilters(jakarta.ws.rs.container.ContainerResponseFilter[] responseFilters) - Specified by:
setResponseFilters
in interfaceResteasyAsynchronousResponse
-
getWriterInterceptors
public jakarta.ws.rs.ext.WriterInterceptor[] getWriterInterceptors()- Specified by:
getWriterInterceptors
in interfaceResteasyAsynchronousResponse
-
setWriterInterceptors
public void setWriterInterceptors(jakarta.ws.rs.ext.WriterInterceptor[] writerInterceptors) - Specified by:
setWriterInterceptors
in interfaceResteasyAsynchronousResponse
-
getAsyncWriterInterceptors
- Specified by:
getAsyncWriterInterceptors
in interfaceResteasyAsynchronousResponse
-
getAnnotations
- Specified by:
getAnnotations
in interfaceResteasyAsynchronousResponse
-
setAnnotations
- Specified by:
setAnnotations
in interfaceResteasyAsynchronousResponse
-
completionCallbacks
- Specified by:
completionCallbacks
in interfaceResteasyAsynchronousResponse
-
internalResume
Deprecated. -
internalResume
-
internalResume
Deprecated. -
internalResume
-