public enum HTTPMethodEnum extends Enum<HTTPMethodEnum>
Modifier and Type | Method and Description |
---|---|
static HTTPMethodEnum |
get(int value)
Returns the HTTP method associated to the given value.
|
String |
getName()
Returns the HTTP method name.
|
int |
getValue()
Returns the HTTP method value.
|
String |
toString() |
static HTTPMethodEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HTTPMethodEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HTTPMethodEnum DELETE
public static final HTTPMethodEnum EMPTY
public static final HTTPMethodEnum GET
public static final HTTPMethodEnum POST
public static final HTTPMethodEnum PUT
public static HTTPMethodEnum get(int value)
value
- HTTP method value to retrieve.null
if not exists.public int getValue()
public String toString()
toString
in class Enum<HTTPMethodEnum>
public static HTTPMethodEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static HTTPMethodEnum[] values()
for (HTTPMethodEnum c : HTTPMethodEnum.values()) System.out.println(c);
© Copyright 2014 - 2024 Digi International Inc. All rights reserved.