Class EarlyEofExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>

    @Provider
    public class EarlyEofExceptionMapper
    extends java.lang.Object
    implements javax.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>
    Exception mapper if client disconnects unexpectedly. This mapper replaces EarlyEofExceptionMapper to return the custom ApiError.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response toResponse​(org.eclipse.jetty.io.EofException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EarlyEofExceptionMapper

        public EarlyEofExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(org.eclipse.jetty.io.EofException exception)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<org.eclipse.jetty.io.EofException>