public interface AsyncWriterInterceptorContext
extends javax.ws.rs.ext.InterceptorContext
AsyncWriterInterceptor which supports async IO.| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
asyncProceed()
Proceed to the next interceptor in the chain.
|
AsyncOutputStream |
getAsyncOutputStream()
Get the async output stream for the object to be written.
|
Object |
getEntity()
Get object to be written as HTTP entity.
|
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHeaders()
Get mutable map of HTTP headers.
|
void |
setAsyncOutputStream(AsyncOutputStream os)
Set a new async output stream for the object to be written.
|
void |
setEntity(Object entity)
Update object to be written as HTTP entity.
|
CompletionStage<Void> asyncProceed()
AsyncMessageBodyWriter.asyncWriteTo(T, java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.Object>, org.jboss.resteasy.spi.AsyncOutputStream) method.CompletionStage indicating completion.IOException - if an IO error arises or is thrown by the wrapped
AsyncMessageBodyWriter.asyncWriteTo method, in the returned CompletionStage.javax.ws.rs.WebApplicationException - thrown by the wrapped AsyncMessageBodyWriter.asyncWriteTo method, in the returned CompletionStage.Object getEntity()
void setEntity(Object entity)
entity - new object to be written.AsyncOutputStream getAsyncOutputStream()
void setAsyncOutputStream(AsyncOutputStream os)
os - new async output stream for the object to be written.Copyright © 2020 JBoss by Red Hat. All rights reserved.