private class WriterInterceptorExecutor.TerminalWriterInterceptor
extends java.lang.Object
implements javax.ws.rs.ext.WriterInterceptor
MessageBodyWriter
and writes the entity to the output stream. The order of actions is the following: MessageBodyWriter
Modifier and Type | Field and Description |
---|---|
private MessageBodyWorkers |
workers |
Constructor and Description |
---|
TerminalWriterInterceptor(MessageBodyWorkers workers) |
Modifier and Type | Method and Description |
---|---|
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) |
private void |
invokeWriteTo(javax.ws.rs.ext.WriterInterceptorContext context,
javax.ws.rs.ext.MessageBodyWriter writer) |
private final MessageBodyWorkers workers
public TerminalWriterInterceptor(MessageBodyWorkers workers)
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws javax.ws.rs.WebApplicationException, java.io.IOException
aroundWriteTo
in interface javax.ws.rs.ext.WriterInterceptor
javax.ws.rs.WebApplicationException
java.io.IOException
private void invokeWriteTo(javax.ws.rs.ext.WriterInterceptorContext context, javax.ws.rs.ext.MessageBodyWriter writer) throws javax.ws.rs.WebApplicationException, java.io.IOException
javax.ws.rs.WebApplicationException
java.io.IOException