Package org.opennms.web.rest.support
Class ServiceUnavailableResponseProvider
- java.lang.Object
-
- org.opennms.web.rest.support.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 typeServiceUnavailableException
to a Response HTTP Status of 503 (service not available).
-
-
Constructor Summary
Constructors Constructor Description ServiceUnavailableResponseProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(javax.naming.ServiceUnavailableException exception)
-