Package com.braintreegateway.util
Enum Http.RequestMethod
- java.lang.Object
-
- java.lang.Enum<Http.RequestMethod>
-
- com.braintreegateway.util.Http.RequestMethod
-
- All Implemented Interfaces:
Serializable,Comparable<Http.RequestMethod>
- Enclosing class:
- Http
public static enum Http.RequestMethod extends Enum<Http.RequestMethod>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRequestMethod()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Http.RequestMethodvalueOf(String name)Returns the enum constant of this type with the specified name.static Http.RequestMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELETE
public static final Http.RequestMethod DELETE
-
GET
public static final Http.RequestMethod GET
-
POST
public static final Http.RequestMethod POST
-
PUT
public static final Http.RequestMethod PUT
-
-
Method Detail
-
values
public static Http.RequestMethod[] 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 (Http.RequestMethod c : Http.RequestMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Http.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 nameNullPointerException- if the argument is null
-
-