Package org.opennms.web.rest.support
Class NoSuchElementProvider
- java.lang.Object
-
- org.opennms.web.rest.support.NoSuchElementProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<NoSuchElementException>
@Provider public class NoSuchElementProvider extends Object implements javax.ws.rs.ext.ExceptionMapper<NoSuchElementException>
Maps an Exception of typeNoSuchElementException
to a Response HTTP Status of 404 (not found).
-
-
Constructor Summary
Constructors Constructor Description NoSuchElementProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(NoSuchElementException exception)
-
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(NoSuchElementException exception)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<NoSuchElementException>
-
-