Class JettyEofExceptionMapper
java.lang.Object
io.confluent.kafka.schemaregistry.rest.exceptions.JettyEofExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>
@Provider
public class JettyEofExceptionMapper
extends Object
implements jakarta.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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsetoResponse(org.eclipse.jetty.io.EofException exception)
-
Constructor Details
-
JettyEofExceptionMapper
public JettyEofExceptionMapper()
-
-
Method Details
-
toResponse
public jakarta.ws.rs.core.Response toResponse(org.eclipse.jetty.io.EofException exception) - Specified by:
toResponsein interfacejakarta.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>
-