com.google.code.linkedinapi.client.enumeration
Enum HttpMethod

java.lang.Object
  extended by java.lang.Enum<HttpMethod>
      extended by com.google.code.linkedinapi.client.enumeration.HttpMethod
All Implemented Interfaces:
FieldEnum, java.io.Serializable, java.lang.Comparable<HttpMethod>

public enum HttpMethod
extends java.lang.Enum<HttpMethod>
implements FieldEnum

Author:
Nabeel Mukhtar

Enum Constant Summary
DELETE
          HTTP Delete Method
GET
          HTTP Get Method
POST
          HTTP Post Method
PUT
          HTTP Put Method
 
Field Summary
private  java.lang.String fieldName
          Field description
private static java.util.Map<java.lang.String,HttpMethod> stringToEnum
          Field Description.
 
Method Summary
 java.lang.String fieldName()
           
static HttpMethod fromString(java.lang.String symbol)
           
 java.lang.String toString()
          Method description
static HttpMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HttpMethod[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GET

public static final HttpMethod GET
HTTP Get Method


PUT

public static final HttpMethod PUT
HTTP Put Method


POST

public static final HttpMethod POST
HTTP Post Method


DELETE

public static final HttpMethod DELETE
HTTP Delete Method

Field Detail

stringToEnum

private static final java.util.Map<java.lang.String,HttpMethod> stringToEnum
Field Description.


fieldName

private final java.lang.String fieldName
Field description

Method Detail

values

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

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

valueOf

public static HttpMethod valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fieldName

public java.lang.String fieldName()
Specified by:
fieldName in interface FieldEnum
Returns:
the name of the field

toString

public java.lang.String toString()
Method description

Overrides:
toString in class java.lang.Enum<HttpMethod>
Returns:

fromString

public static HttpMethod fromString(java.lang.String symbol)
Returns:
Returns HttpMethod for string, or null if string is invalid