Package io.dropwizard.jersey.errors
Class EarlyEofExceptionMapper
- java.lang.Object
-
- io.dropwizard.jersey.errors.EarlyEofExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>
@Provider public class EarlyEofExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>
This class is intended to catch Early EOF errors that occur when the client disconnects while the server is reading from the input stream. We catch the org.ecplise.jetty.io.EofException rather than the more generic java.io.EOFException to ensure that we're only catching jetty server based errors where the client disconnects, as specified byEofException
.
-
-
Constructor Summary
Constructors Constructor Description EarlyEofExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(org.eclipse.jetty.io.EofException e)
-