Class SecurityExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<SecurityException>

    @Provider
    public class SecurityExceptionMapper
    extends Object
    implements javax.ws.rs.ext.ExceptionMapper<SecurityException>
    Maps SecurityExceptions to 403: Forbidden response.
    Author:
    as 2012.01.12
    • Constructor Detail

      • SecurityExceptionMapper

        public SecurityExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(SecurityException ex)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<SecurityException>