Class WriterInterceptorExecutor.TerminalWriterInterceptor
java.lang.Object
org.glassfish.jersey.message.internal.WriterInterceptorExecutor.TerminalWriterInterceptor
- All Implemented Interfaces:
javax.ws.rs.ext.WriterInterceptor
- Enclosing class:
WriterInterceptorExecutor
private class WriterInterceptorExecutor.TerminalWriterInterceptor
extends Object
implements javax.ws.rs.ext.WriterInterceptor
Terminal writer interceptor which choose the appropriate
1. choose the appropriate
2. if callback is defined then it retrieves size and passes it to the callback
3. writes the entity to the output stream
MessageBodyWriter
and writes the entity to the output stream. The order of actions is the following: 1. choose the appropriate
MessageBodyWriter
2. if callback is defined then it retrieves size and passes it to the callback
3. writes the entity to the output stream
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
aroundWriteTo
(javax.ws.rs.ext.WriterInterceptorContext context) private void
invokeWriteTo
(javax.ws.rs.ext.WriterInterceptorContext context, javax.ws.rs.ext.MessageBodyWriter writer)
-
Field Details
-
workers
-
-
Constructor Details
-
TerminalWriterInterceptor
TerminalWriterInterceptor(MessageBodyWorkers workers)
-
-
Method Details
-
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws javax.ws.rs.WebApplicationException, IOException - Specified by:
aroundWriteTo
in interfacejavax.ws.rs.ext.WriterInterceptor
- Throws:
javax.ws.rs.WebApplicationException
IOException
-
invokeWriteTo
private void invokeWriteTo(javax.ws.rs.ext.WriterInterceptorContext context, javax.ws.rs.ext.MessageBodyWriter writer) throws javax.ws.rs.WebApplicationException, IOException - Throws:
javax.ws.rs.WebApplicationException
IOException
-