org.glassfish.jersey.examples.httpsclientservergrizzly
Class AuthenticationExceptionMapper
java.lang.Object
org.glassfish.jersey.examples.httpsclientservergrizzly.AuthenticationExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<AuthenticationException>
@Provider
public class AuthenticationExceptionMapper
- extends Object
- implements javax.ws.rs.ext.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 (pavel.bucek at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticationExceptionMapper
public AuthenticationExceptionMapper()
toResponse
public javax.ws.rs.core.Response toResponse(AuthenticationException e)
- Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<AuthenticationException>
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.