Class 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 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • aroundWriteTo

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