Class 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.
    • Constructor Detail

      • ForbiddenMapper

        public ForbiddenMapper()
    • Method Detail

      • responseStatus

        protected javax.ws.rs.core.Response.Status responseStatus()
        Description copied from class: AbstractMapper
        Returns the response status to be given when the exception occurs.
        Specified by:
        responseStatus in class AbstractMapper<javax.ws.rs.ForbiddenException>
        Returns:
        response status