Package org.onlab.rest.exceptions
Class EntityNotFoundMapper
- java.lang.Object
- 
- org.onlab.rest.exceptions.AbstractMapper<ItemNotFoundException>
- 
- org.onlab.rest.exceptions.EntityNotFoundMapper
 
 
- 
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<ItemNotFoundException>
 
 @Provider public class EntityNotFoundMapper extends AbstractMapper<ItemNotFoundException> Mapper for service not found exceptions to the NOT_FOUND response code.
- 
- 
Field Summary- 
Fields inherited from class org.onlab.rest.exceptions.AbstractMappererror
 
- 
 - 
Constructor SummaryConstructors Constructor Description EntityNotFoundMapper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response.StatusresponseStatus()Returns the response status to be given when the exception occurs.- 
Methods inherited from class org.onlab.rest.exceptions.AbstractMappermessageFrom, response, toResponse
 
- 
 
- 
- 
- 
Method Detail- 
responseStatusprotected javax.ws.rs.core.Response.Status responseStatus() Description copied from class:AbstractMapperReturns the response status to be given when the exception occurs.- Specified by:
- responseStatusin class- AbstractMapper<ItemNotFoundException>
- Returns:
- response status
 
 
- 
 
-