Enum HTTPMethod
- java.lang.Object
-
- java.lang.Enum<HTTPMethod>
-
- org.bonitasoft.connectors.rest.model.HTTPMethod
-
- All Implemented Interfaces:
Serializable,Comparable<HTTPMethod>
public enum HTTPMethod extends Enum<HTTPMethod>
The HTTP methods applicable for REST.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HTTPMethodgetRESTHTTPMethodFromValue(String value)Get the RESTHTTPMethod based on a valuestatic HTTPMethodvalueOf(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.
-
-
-
Enum Constant Detail
-
GET
public static final HTTPMethod GET
The items.
-
POST
public static final HTTPMethod POST
-
PUT
public static final HTTPMethod PUT
-
DELETE
public static final HTTPMethod DELETE
-
HEAD
public static final HTTPMethod HEAD
-
-
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(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 nameNullPointerException- if the argument is null
-
getRESTHTTPMethodFromValue
public static HTTPMethod getRESTHTTPMethodFromValue(String value)
Get the RESTHTTPMethod based on a value- Parameters:
value- The value- Returns:
- The associated RESTHTTPMethod value
-
-