net.kwfgrid.gwes.restfulclient
Enum RestfulClient.Method

java.lang.Object
  extended by java.lang.Enum<RestfulClient.Method>
      extended by net.kwfgrid.gwes.restfulclient.RestfulClient.Method
All Implemented Interfaces:
Serializable, Comparable<RestfulClient.Method>
Enclosing class:
RestfulClient

public static enum RestfulClient.Method
extends Enum<RestfulClient.Method>

HTTP RESTful method.


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

POST

public static final RestfulClient.Method POST

HEAD

public static final RestfulClient.Method HEAD

OPTIONS

public static final RestfulClient.Method OPTIONS

PUT

public static final RestfulClient.Method PUT

DELETE

public static final RestfulClient.Method DELETE

TRACE

public static final RestfulClient.Method TRACE
Method Detail

values

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

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

valueOf

public static RestfulClient.Method 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


Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.