Class ServiceUnavailableResponseProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<javax.naming.ServiceUnavailableException>

    @Provider
    public class ServiceUnavailableResponseProvider
    extends java.lang.Object
    implements javax.ws.rs.ext.ExceptionMapper<javax.naming.ServiceUnavailableException>
    Maps an Exception of type ServiceUnavailableException to a Response HTTP Status of 503 (service not available).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response toResponse​(javax.naming.ServiceUnavailableException exception)  
      • Methods inherited from class java.lang.Object

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

      • ServiceUnavailableResponseProvider

        public ServiceUnavailableResponseProvider()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(javax.naming.ServiceUnavailableException exception)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<javax.naming.ServiceUnavailableException>