public class ExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<AuthorizationException>
AuthorizationExceptions
to HTTP status codes.
UnauthorizedException
will be mapped to 403, all others 401.Constructor and Description |
---|
ExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
toResponse(AuthorizationException exception) |
public ExceptionMapper()
public javax.ws.rs.core.Response toResponse(AuthorizationException exception)
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<AuthorizationException>
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.