org.iqual.chaplin.msg
Enum RequestMethod

java.lang.Object
  extended by java.lang.Enum<RequestMethod>
      extended by org.iqual.chaplin.msg.RequestMethod
All Implemented Interfaces:
Serializable, Comparable<RequestMethod>

public enum RequestMethod
extends Enum<RequestMethod>

Since:
Jun 12, 2009 5:14:39 PM
Author:
Zbynek Slajchrt

Enum Constant Summary
delete
          Indicates that the message should be treated as a operation which removes a property.
get
          Indicates that the message should be treated as a operation which retrieves a value of a property.
invoke
          Indicates that the message should be treated as a general operation.
set
          Indicates that the message should be treated as a operation which sets a value to a property.
 
Method Summary
static RequestMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RequestMethod[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

get

public static final RequestMethod get
Indicates that the message should be treated as a operation which retrieves a value of a property. The property name is given by the method name parameter of the message. It is an equivalent to HTTP GET method.


set

public static final RequestMethod set
Indicates that the message should be treated as a operation which sets a value to a property. The property name is given by the method name parameter of the message. It is an equivalent to HTTP PUT method


delete

public static final RequestMethod delete
Indicates that the message should be treated as a operation which removes a property. The property name is given by the method name parameter of the message. It is an equivalent to HTTP DELETE method


invoke

public static final RequestMethod invoke
Indicates that the message should be treated as a general operation. It is an equivalent to HTTP POST method

Method Detail

values

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

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

valueOf

public static RequestMethod 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


Copyright © 2009 iquality.org. All Rights Reserved.