org.apache.camel.component.http
Enum HttpMethods

java.lang.Object
  extended by java.lang.Enum<HttpMethods>
      extended by org.apache.camel.component.http.HttpMethods
All Implemented Interfaces:
Serializable, Comparable<HttpMethods>, Expression<Exchange>

public enum HttpMethods
extends Enum<HttpMethods>
implements Expression<Exchange>


Enum Constant Summary
DELETE
           
GET
           
HEAD
           
OPTIONS
           
POST
           
PUT
           
TRACE
           
 
Field Summary
static String HTTP_METHOD
           
 
Method Summary
 org.apache.commons.httpclient.HttpMethod createMethod()
           
 org.apache.commons.httpclient.HttpMethod createMethod(String url)
           
 Object evaluate(Exchange exchange)
           
 boolean isEntityEnclosing()
           
static HttpMethods valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HttpMethods[] 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 HttpMethods GET

POST

public static final HttpMethods POST

PUT

public static final HttpMethods PUT

DELETE

public static final HttpMethods DELETE

HEAD

public static final HttpMethods HEAD

OPTIONS

public static final HttpMethods OPTIONS

TRACE

public static final HttpMethods TRACE
Field Detail

HTTP_METHOD

public static final String HTTP_METHOD
See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

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

createMethod

public org.apache.commons.httpclient.HttpMethod createMethod(String url)

createMethod

public org.apache.commons.httpclient.HttpMethod createMethod()

isEntityEnclosing

public final boolean isEntityEnclosing()

evaluate

public Object evaluate(Exchange exchange)
Specified by:
evaluate in interface Expression<Exchange>


Copyright © 2009 Apache Software Foundation. All Rights Reserved.