Package org.onlab.rest.exceptions
Class ForbiddenMapper
- java.lang.Object
 - 
- org.onlab.rest.exceptions.AbstractMapper<javax.ws.rs.ForbiddenException>
 - 
- org.onlab.rest.exceptions.ForbiddenMapper
 
 
 
- 
- All Implemented Interfaces:
 javax.ws.rs.ext.ExceptionMapper<javax.ws.rs.ForbiddenException>
@Provider public class ForbiddenMapper extends AbstractMapper<javax.ws.rs.ForbiddenException>
Mapper for service not found exceptions to the NOT_FOUND response code. 
- 
- 
Field Summary
- 
Fields inherited from class org.onlab.rest.exceptions.AbstractMapper
error 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ForbiddenMapper() 
- 
Method Summary
All 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.AbstractMapper
messageFrom, response, toResponse 
 - 
 
 - 
 
- 
- 
Method Detail
- 
responseStatus
protected 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 classAbstractMapper<javax.ws.rs.ForbiddenException>- Returns:
 - response status
 
 
 - 
 
 -