Package net.oauth
Class OAuthProblemException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.oauth.OAuthException
-
- net.oauth.OAuthProblemException
-
- All Implemented Interfaces:
Serializable
public class OAuthProblemException extends OAuthException
An OAuth-related problem, described using a set of named parameters. One parameter identifies the basic problem, and the others provide supplementary diagnostic information. This can be used to capture information from a response that conforms to the OAuth Problem Reporting extension.- Author:
- John Kristian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringHTTP_LOCATIONThe name of a parameter whose value is the response Location header.static StringHTTP_REQUESTThe name of a parameter whose value is the HTTP request.static StringHTTP_RESPONSEThe name of a parameter whose value is the HTTP response.static StringHTTP_STATUS_CODEThe name of a parameter whose value is the HTTP resopnse status code.static StringOAUTH_PROBLEMstatic StringSIGNATURE_BASE_STRINGThe name of a parameter whose value is the OAuth signature base string.static StringURLThe name of a parameter whose value is the request URL.
-
Constructor Summary
Constructors Constructor Description OAuthProblemException()OAuthProblemException(String problem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHttpStatusCode()StringgetMessage()Map<String,Object>getParameters()StringgetProblem()voidsetParameter(String name, Object value)StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
HTTP_LOCATION
public static final String HTTP_LOCATION
The name of a parameter whose value is the response Location header.- See Also:
- Constant Field Values
-
HTTP_REQUEST
public static final String HTTP_REQUEST
The name of a parameter whose value is the HTTP request.- See Also:
- Constant Field Values
-
HTTP_RESPONSE
public static final String HTTP_RESPONSE
The name of a parameter whose value is the HTTP response.- See Also:
- Constant Field Values
-
HTTP_STATUS_CODE
public static final String HTTP_STATUS_CODE
The name of a parameter whose value is the HTTP resopnse status code.- See Also:
- Constant Field Values
-
OAUTH_PROBLEM
public static final String OAUTH_PROBLEM
- See Also:
- Constant Field Values
-
SIGNATURE_BASE_STRING
public static final String SIGNATURE_BASE_STRING
The name of a parameter whose value is the OAuth signature base string.- See Also:
- Constant Field Values
-
URL
public static final String URL
The name of a parameter whose value is the request URL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OAuthProblemException
public OAuthProblemException()
-
OAuthProblemException
public OAuthProblemException(String problem)
-
-
Method Detail
-
getHttpStatusCode
public int getHttpStatusCode()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getProblem
public String getProblem()
-
-