public class

OAuthProxyException

extends ServiceException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.gdata.util.ServiceException
         ↳ com.google.gdata.util.OAuthProxyException

Class Overview

Represents an error thrown by the OAuth Proxy in an App Engine environment. Provides getters/setters for OAuth Proxy-specific parameters.

Summary

[Expand]
Inherited Constants
From class java.lang.Exception
From class java.lang.Throwable
Fields
private final OAuthProxyResponse response
[Expand]
Inherited Fields
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
Public Constructors
OAuthProxyException(HttpURLConnection httpConn)
Creates a new OAuthProxyException, and populates the OAuth Proxy specific parameters from the HttpURLConnection.
Public Methods
String getApprovalUrl()
Gets the value of the "x_oauth_approval_url" header from the http response.
String getError()
Gets the value of the "x_oauth_error" header from the http response.
String getErrorText()
Gets the value of the "x_oauth_error_text" header from the http response.
String getState()
Gets the value of the "x_oauth_state" header from the http response.
[Expand]
Inherited Methods
From class com.google.gdata.util.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Fields

private final OAuthProxyResponse response

Public Constructors

public OAuthProxyException (HttpURLConnection httpConn)

Creates a new OAuthProxyException, and populates the OAuth Proxy specific parameters from the HttpURLConnection.

Parameters
httpConn The http response.
Throws
IOException

Public Methods

public String getApprovalUrl ()

Gets the value of the "x_oauth_approval_url" header from the http response.

public String getError ()

Gets the value of the "x_oauth_error" header from the http response.

public String getErrorText ()

Gets the value of the "x_oauth_error_text" header from the http response.

public String getState ()

Gets the value of the "x_oauth_state" header from the http response.