Class UnauthorizedExceptionMapper

java.lang.Object
ch.tocco.nice2.rest.core.spi.error.UnauthorizedExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<UnauthorizedException>

@Component public class UnauthorizedExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<UnauthorizedException>
Maps UnauthorizedException to a response. If the user is authenticated, status 403 FORBIDDEN is returned. If the user is not authenticated, status 401 UNAUTHORIZED is returned.
  • Constructor Details

    • UnauthorizedExceptionMapper

      public UnauthorizedExceptionMapper(org.slf4j.Logger log)
  • Method Details