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.WriterInterceptorTerminal writer interceptor which choose the appropriateMessageBodyWriterand 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 MessageBodyWorkersworkers
-
Constructor Summary
Constructors Constructor Description TerminalWriterInterceptor(MessageBodyWorkers workers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)private voidinvokeWriteTo(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:
aroundWriteToin interfacejavax.ws.rs.ext.WriterInterceptor- Throws:
javax.ws.rs.WebApplicationExceptionjava.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.WebApplicationExceptionjava.io.IOException
-
-