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 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 Details

  • Constructor Details

  • Method Details

    • aroundWriteTo

      public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws javax.ws.rs.WebApplicationException, IOException
      Specified by:
      aroundWriteTo in interface javax.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