com.nativex.common
Enum Request.HTTP_ACTION

java.lang.Object
  extended by java.lang.Enum<Request.HTTP_ACTION>
      extended by com.nativex.common.Request.HTTP_ACTION
All Implemented Interfaces:
Serializable, Comparable<Request.HTTP_ACTION>
Enclosing class:
Request

public static enum Request.HTTP_ACTION
extends Enum<Request.HTTP_ACTION>

Enumerates the possible HTTP methods.

Author:
Anton Donchev

Enum Constant Summary
GET
           
HEAD
           
INVALID
           
POST
           
 
Method Summary
static Request.HTTP_ACTION valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Request.HTTP_ACTION[] 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

GET

public static final Request.HTTP_ACTION GET

POST

public static final Request.HTTP_ACTION POST

HEAD

public static final Request.HTTP_ACTION HEAD

INVALID

public static final Request.HTTP_ACTION INVALID
Method Detail

values

public static Request.HTTP_ACTION[] 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 (Request.HTTP_ACTION c : Request.HTTP_ACTION.values())
    System.out.println(c);

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

valueOf

public static Request.HTTP_ACTION 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