Class ServerWriterInterceptorContext
java.lang.Object
org.jboss.resteasy.core.interception.jaxrs.AbstractWriterInterceptorContext
org.jboss.resteasy.core.interception.jaxrs.ServerWriterInterceptorContext
- All Implemented Interfaces:
jakarta.ws.rs.ext.InterceptorContext
,jakarta.ws.rs.ext.WriterInterceptorContext
,AsyncWriterInterceptorContext
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields inherited from class org.jboss.resteasy.core.interception.jaxrs.AbstractWriterInterceptorContext
annotations, entity, genericType, headers, index, interceptors, mediaType, outputStream, providerFactory, requireAsyncIO, tracingLogger, type
-
Constructor Summary
ConstructorDescriptionServerWriterInterceptorContext
(jakarta.ws.rs.ext.WriterInterceptor[] interceptors, ResteasyProviderFactory providerFactory, Object entity, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> headers, OutputStream outputStream, HttpRequest request, Consumer<Throwable> onWriteComplete) -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String name) void
removeProperty
(String name) protected jakarta.ws.rs.ext.MessageBodyWriter
void
setProperty
(String name, Object object) protected CompletionStage
<Void> writeTo
(jakarta.ws.rs.ext.MessageBodyWriter writer) protected CompletionStage
<Void> writeTo
(AsyncMessageBodyWriter writer) Methods inherited from class org.jboss.resteasy.core.interception.jaxrs.AbstractWriterInterceptorContext
asyncProceed, getAnnotations, getAsyncOutputStream, getEntity, getGenericType, getHeaders, getMediaType, getOutputStream, getProcessedInterceptorCount, getType, getWriter, preferAsyncIo, proceed, setAnnotations, setAsyncOutputStream, setEntity, setGenericType, setMediaType, setOutputStream, setType, syncProceed, traceAfter, traceBefore
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.ext.InterceptorContext
hasProperty
-
Constructor Details
-
ServerWriterInterceptorContext
public ServerWriterInterceptorContext(jakarta.ws.rs.ext.WriterInterceptor[] interceptors, ResteasyProviderFactory providerFactory, Object entity, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> headers, OutputStream outputStream, HttpRequest request, Consumer<Throwable> onWriteComplete)
-
-
Method Details
-
resolveWriter
protected jakarta.ws.rs.ext.MessageBodyWriter resolveWriter()- Specified by:
resolveWriter
in classAbstractWriterInterceptorContext
-
getProperty
-
getStarted
- Overrides:
getStarted
in classAbstractWriterInterceptorContext
-
writeTo
protected CompletionStage<Void> writeTo(jakarta.ws.rs.ext.MessageBodyWriter writer) throws IOException - Overrides:
writeTo
in classAbstractWriterInterceptorContext
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classAbstractWriterInterceptorContext
-
getPropertyNames
-
setProperty
-
removeProperty
-