Package io.dropwizard.jersey.errors
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:
-
EarlyEofExceptionMapperEofException
-
Constructor Summary
ConstructorsConstructorDescriptionEofExceptionWriterInterceptor(com.codahale.metrics.MetricRegistry metricRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context)
-
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:
aroundWriteToin interfacejakarta.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-