com.atlassian.crowd.plugin.rest.exception.mapper
Class InvalidTokenExceptionMapper
java.lang.Object
com.atlassian.crowd.plugin.rest.exception.mapper.InvalidTokenExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<InvalidTokenException>
@Provider
public class InvalidTokenExceptionMapper
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<InvalidTokenException>
Maps an InvalidTokenException
to a 401 (Unauthorized) status.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvalidTokenExceptionMapper
public InvalidTokenExceptionMapper()
toResponse
public javax.ws.rs.core.Response toResponse(InvalidTokenException exception)
- Specified by:
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<InvalidTokenException>
Copyright © 2013 Atlassian. All Rights Reserved.