com.sun.jersey.oauth.server
Class OAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jersey.oauth.server.OAuthException
- All Implemented Interfaces:
- Serializable
public class OAuthException
- extends RuntimeException
Exception that is mapped either to Response.Status#BAD_REQUEST
or
Response.Status#UNAUTHORIZED
.
- Author:
- Martin Matula
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
status
public final Response.Status status
wwwAuthHeader
public final String wwwAuthHeader
OAuthException
public OAuthException(Response.Status status,
String wwwAuthHeader)
toResponse
public Response toResponse()
- Maps this exception to a response object.
- Returns:
- Response this exception maps to.
Copyright © 2013 Oracle Corporation. All Rights Reserved.