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 java.lang.Object implements javax.ws.rs.ext.WriterInterceptor
Terminal writer interceptor which choose the appropriateMessageBodyWriter
and writes the entity to the output stream. The order of actions is the following:
1. choose the appropriateMessageBodyWriter
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 Modifier and Type Field Description private MessageBodyWorkers
workers
-
Constructor Summary
Constructors Constructor Description TerminalWriterInterceptor(MessageBodyWorkers workers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
private void
invokeWriteTo(javax.ws.rs.ext.WriterInterceptorContext context, javax.ws.rs.ext.MessageBodyWriter writer)
-
-
-
Field Detail
-
workers
private final MessageBodyWorkers workers
-
-
Constructor Detail
-
TerminalWriterInterceptor
TerminalWriterInterceptor(MessageBodyWorkers workers)
-
-
Method Detail
-
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws javax.ws.rs.WebApplicationException, java.io.IOException
- Specified by:
aroundWriteTo
in interfacejavax.ws.rs.ext.WriterInterceptor
- Throws:
javax.ws.rs.WebApplicationException
java.io.IOException
-
invokeWriteTo
private void invokeWriteTo(javax.ws.rs.ext.WriterInterceptorContext context, javax.ws.rs.ext.MessageBodyWriter writer) throws javax.ws.rs.WebApplicationException, java.io.IOException
- Throws:
javax.ws.rs.WebApplicationException
java.io.IOException
-
-