Package org.eclipse.sw360.http
Enum RequestBuilder.Method
- java.lang.Object
-
- java.lang.Enum<RequestBuilder.Method>
-
- org.eclipse.sw360.http.RequestBuilder.Method
-
- All Implemented Interfaces:
Serializable,Comparable<RequestBuilder.Method>
- Enclosing interface:
- RequestBuilder
public static enum RequestBuilder.Method extends Enum<RequestBuilder.Method>
An enumeration class for the HTTP methods supported by the HTTP client.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestBuilder.MethodvalueOf(String name)Returns the enum constant of this type with the specified name.static RequestBuilder.Method[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final RequestBuilder.Method GET
-
POST
public static final RequestBuilder.Method POST
-
PUT
public static final RequestBuilder.Method PUT
-
PATCH
public static final RequestBuilder.Method PATCH
-
DELETE
public static final RequestBuilder.Method DELETE
-
-
Method Detail
-
values
public static RequestBuilder.Method[] 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 (RequestBuilder.Method c : RequestBuilder.Method.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestBuilder.Method 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
-
-