javax.ws.rs.ext.WriterInterceptor
to intercept calls to javax.ws.rs.ext.MessageBodyWriter#writeTo.
The getters and setters in this context class correspond to the
parameters of the intercepted method.
WriterInterceptor, MessageBodyWriter
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public MultivaluedMap | |
| public OutputStream | Returns: output stream for the object to be written.Get the output stream for the object to be written. |
| public void | |
| public void | |
| public void | setOutputStream(OutputStream
new output stream for the object to be written. os)Set a new output stream for the object to be written. |
| getEntity | back to summary |
|---|---|
| public Object getEntity() Get object to be written as HTTP entity.
| |
| getHeaders | back to summary |
|---|---|
| public MultivaluedMap Get mutable map of HTTP headers.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() Get the output stream for the object to be written. The JAX-RS runtime is responsible for closing the output stream.
| |
| proceed | back to summary |
|---|---|
| public void proceed() throws IOException, WebApplicationException Proceed to the next interceptor in the chain.
Interceptors MUST explicitly call this method to continue the execution chain;
the call to this method in the last interceptor of the chain will invoke
the wrapped
| |
| setEntity | back to summary |
|---|---|
| public void setEntity(Object entity) Update object to be written as HTTP entity.
| |
| setOutputStream | back to summary |
|---|---|
| public void setOutputStream(OutputStream os) Set a new output stream for the object to be written. For example, by wrapping it with another output stream. The JAX-RS runtime is responsible for closing the output stream that is set.
| |