Package com.adaptris.core.http.apache5
Enum HttpProducer.HttpMethod
- java.lang.Object
-
- java.lang.Enum<HttpProducer.HttpMethod>
-
- com.adaptris.core.http.apache5.HttpProducer.HttpMethod
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HttpProducer.HttpMethod>
- Enclosing class:
- HttpProducer
public static enum HttpProducer.HttpMethod extends java.lang.Enum<HttpProducer.HttpMethod>
Maps various methods supported by the Apache Http client.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.hc.client5.http.classic.methods.HttpUriRequestBasecreate(java.lang.String url)static HttpProducer.HttpMethodvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HttpProducer.HttpMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELETE
public static final HttpProducer.HttpMethod DELETE
-
GET
public static final HttpProducer.HttpMethod GET
-
HEAD
public static final HttpProducer.HttpMethod HEAD
-
OPTIONS
public static final HttpProducer.HttpMethod OPTIONS
-
PATCH
public static final HttpProducer.HttpMethod PATCH
-
PUT
public static final HttpProducer.HttpMethod PUT
-
POST
public static final HttpProducer.HttpMethod POST
-
TRACE
public static final HttpProducer.HttpMethod TRACE
-
-
Method Detail
-
values
public static HttpProducer.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 (HttpProducer.HttpMethod c : HttpProducer.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 HttpProducer.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 namejava.lang.NullPointerException- if the argument is null
-
create
public abstract org.apache.hc.client5.http.classic.methods.HttpUriRequestBase create(java.lang.String url)
-
-