Class EofExceptionWriterInterceptor

java.lang.Object
io.dropwizard.jersey.errors.EofExceptionWriterInterceptor
All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor

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

    • EofExceptionWriterInterceptor

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

    • aroundWriteTo

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