Class EofExceptionWriterInterceptor

  • All Implemented Interfaces:
    javax.ws.rs.ext.WriterInterceptor

    @Provider
    @Priority(2147483647)
    public class EofExceptionWriterInterceptor
    extends Object
    implements javax.ws.rs.ext.WriterInterceptor
    A WriterInterceptor to swallow EofException which occurs when a client disconnects before the complete response could be sent.
    See Also:
    EarlyEofExceptionMapper, EofException
    • Constructor Detail

      • EofExceptionWriterInterceptor

        @Inject
        public EofExceptionWriterInterceptor​(com.codahale.metrics.MetricRegistry metricRegistry)
    • Method Detail

      • aroundWriteTo

        public void aroundWriteTo​(javax.ws.rs.ext.WriterInterceptorContext context)
                           throws IOException,
                                  javax.ws.rs.WebApplicationException
        Specified by:
        aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptor
        Throws:
        IOException
        javax.ws.rs.WebApplicationException