Restlet Framework 2.2.2
Java Standard Edition

org.restlet.ext.oauth
Enum ResponseType

java.lang.Object
  extended by java.lang.Enum<ResponseType>
      extended by org.restlet.ext.oauth.ResponseType
All Implemented Interfaces:
Serializable, Comparable<ResponseType>

public enum ResponseType
extends Enum<ResponseType>

Defines the supported types of responses to a grant request.

Author:
Kristoffer Gronowski

Enum Constant Summary
code
          Defined in 4.1 Authorization Code Grant.
token
          Defined in 4.2 Implicit Grant.
 
Method Summary
static ResponseType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static 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 ResponseType code
Defined in 4.1 Authorization Code Grant.


token

public static final ResponseType token
Defined in 4.2 Implicit Grant.

Method Detail

values

public static 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 (ResponseType c : 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 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

Restlet Framework 2.2.2
Java Standard Edition

Copyright © 2005-2014 Restlet.