Class AuthenticationExceptionMapper
- java.lang.Object
-
- org.glassfish.jersey.examples.httpsclientservergrizzly.AuthenticationExceptionMapper
-
- All Implemented Interfaces:
ExceptionMapper<AuthenticationException>
@Provider public class AuthenticationExceptionMapper extends Object implements ExceptionMapper<AuthenticationException>
Map an authentication exception to an HTTP 401 response, optionally including the realm for a credentials challenge at the client.- Author:
- Pavel Bucek
-
-
Constructor Summary
Constructors Constructor Description AuthenticationExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsetoResponse(AuthenticationException e)
-
-
-
Method Detail
-
toResponse
public Response toResponse(AuthenticationException e)
- Specified by:
toResponsein interfaceExceptionMapper<AuthenticationException>
-
-