com.google.api.client.auth.oauth2
Enum AuthorizationRequestUrl.ResponseType

java.lang.Object
  extended by java.lang.Enum<AuthorizationRequestUrl.ResponseType>
      extended by com.google.api.client.auth.oauth2.AuthorizationRequestUrl.ResponseType
All Implemented Interfaces:
Serializable, Comparable<AuthorizationRequestUrl.ResponseType>
Enclosing class:
AuthorizationRequestUrl

public static enum AuthorizationRequestUrl.ResponseType
extends Enum<AuthorizationRequestUrl.ResponseType>

Response type enumeration that may be used for setting the AuthorizationRequestUrl.responseType.

Call set(AuthorizationRequestUrl) to set the response type on an authorization request URL.


Enum Constant Summary
CODE
          Authorization code.
CODE_AND_TOKEN
          Authorization code and access token.
TOKEN
          Access token.
 
Method Summary
 void set(AuthorizationRequestUrl url)
          Sets the response type on an authorization request URL.
static AuthorizationRequestUrl.ResponseType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AuthorizationRequestUrl.ResponseType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CODE

public static final AuthorizationRequestUrl.ResponseType CODE
Authorization code.


TOKEN

public static final AuthorizationRequestUrl.ResponseType TOKEN
Access token.


CODE_AND_TOKEN

public static final AuthorizationRequestUrl.ResponseType CODE_AND_TOKEN
Authorization code and access token.

Method Detail

values

public static AuthorizationRequestUrl.ResponseType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AuthorizationRequestUrl.ResponseType c : AuthorizationRequestUrl.ResponseType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AuthorizationRequestUrl.ResponseType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

set

public void set(AuthorizationRequestUrl url)
Sets the response type on an authorization request URL.

Parameters:
url - authorization request URL


Copyright © 2010-2011 Google. All Rights Reserved.