Class AuthorizationExceptionMapper
java.lang.Object
com.atlassian.labs.crowd.directory.pruning.rest.AuthorizationExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<com.atlassian.plugins.rest.api.security.exception.AuthorizationException>
@Provider
public class AuthorizationExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<com.atlassian.plugins.rest.api.security.exception.AuthorizationException>
-
Constructor Summary
ConstructorDescriptionAuthorizationExceptionMapper
(com.atlassian.sal.api.message.I18nResolver i18nResolver) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
toResponse
(com.atlassian.plugins.rest.api.security.exception.AuthorizationException exception)
-
Constructor Details
-
AuthorizationExceptionMapper
@Inject public AuthorizationExceptionMapper(com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
-
Method Details
-
toResponse
public javax.ws.rs.core.Response toResponse(com.atlassian.plugins.rest.api.security.exception.AuthorizationException exception) - Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<com.atlassian.plugins.rest.api.security.exception.AuthorizationException>
-