Class ServerRuntime.Responder

  • Enclosing class:
    ServerRuntime

    private static class ServerRuntime.Responder
    extends java.lang.Object
    • Method Detail

      • process

        public void process​(java.lang.Throwable throwable)
        Process throwable by using exception mappers and generating the mapped response if possible.

        Note about logging:

        • we do not log exceptions that are mapped by ExceptionMappers.
        • All other exceptions are logged: WebApplicationExceptions with entities, exceptions that were unsuccessfully mapped

        Parameters:
        throwable - Exception to be processed.
      • processResponseError

        private boolean processResponseError​(java.lang.Throwable responseError)
        If "jersey.config.server.exception.processResponseErrors" is set to true then try to handle errors raised during response processing.
        Parameters:
        responseError - a throwable that occurred during response processing.
        Returns:
        true if the given response error has been processed, false otherwise.
      • convertResponse

        private ContainerResponse convertResponse​(javax.ws.rs.core.Response exceptionResponse)
      • mapException

        private javax.ws.rs.core.Response mapException​(java.lang.Throwable originalThrowable)
                                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • setWrittenResponse

        private void setWrittenResponse​(ContainerResponse response)