Enum Class HTTPMethod
- All Implemented Interfaces:
Serializable
,Comparable<HTTPMethod>
,Constable
,org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'HTTP Method',
and utility methods for working with them.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 'Any' literal object.The 'CONNECT' literal object.The 'COPY' literal object.The 'DELETE' literal object.The 'GET' literal object.The 'LOCK' literal object.The 'MERGE' literal object.The 'MKCOL' literal object.The 'MOVE' literal object.The 'OPTIONS' literal object.The 'PATCH' literal object.The 'POST' literal object.The 'PROPFIND' literal object.The 'PROPPATCH' literal object.The 'PUT' literal object.The 'TRACE' literal object.The 'UNLOCK' literal object. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The 'Any' literal value.static final int
The 'CONNECT' literal value.static final int
The 'COPY' literal value.static final int
The 'DELETE' literal value.static final int
The 'GET' literal value.static final int
The 'LOCK' literal value.static final int
The 'MERGE' literal value.static final int
The 'MKCOL' literal value.static final int
The 'MOVE' literal value.static final int
The 'OPTIONS' literal value.static final int
The 'PATCH' literal value.static final int
The 'POST' literal value.static final int
The 'PROPFIND' literal value.static final int
The 'PROPPATCH' literal value.static final int
The 'PUT' literal value.static final int
The 'TRACE' literal value.static final int
The 'UNLOCK' literal value.static final List<HTTPMethod>
A public read-only list of all the 'HTTP Method' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic HTTPMethod
get
(int value) Returns the 'HTTP Method' literal with the specified integer value.static HTTPMethod
Returns the 'HTTP Method' literal with the specified literal value.static HTTPMethod
Returns the 'HTTP Method' literal with the specified name.getName()
int
getValue()
toString()
Returns the literal value of the enumerator, which is its string representation.static HTTPMethod
Returns the enum constant of this class with the specified name.static HTTPMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GET
The 'GET' literal object.- See Also:
-
PUT
The 'PUT' literal object.- See Also:
-
POST
The 'POST' literal object.- See Also:
-
DELETE
The 'DELETE' literal object.- See Also:
-
PATCH
The 'PATCH' literal object.- See Also:
-
MERGE
The 'MERGE' literal object.- See Also:
-
OPTIONS
The 'OPTIONS' literal object.- See Also:
-
TRACE
The 'TRACE' literal object.- See Also:
-
CONNECT
The 'CONNECT' literal object.- See Also:
-
PROPFIND
The 'PROPFIND' literal object.- See Also:
-
PROPPATCH
The 'PROPPATCH' literal object.- See Also:
-
MOVE
The 'MOVE' literal object.- See Also:
-
COPY
The 'COPY' literal object.- See Also:
-
LOCK
The 'LOCK' literal object.- See Also:
-
UNLOCK
The 'UNLOCK' literal object.- See Also:
-
MKCOL
The 'MKCOL' literal object.- See Also:
-
ANY
The 'Any' literal object.- See Also:
-
-
Field Details
-
GET_VALUE
public static final int GET_VALUEThe 'GET' literal value.- See Also:
-
PUT_VALUE
public static final int PUT_VALUEThe 'PUT' literal value.- See Also:
-
POST_VALUE
public static final int POST_VALUEThe 'POST' literal value.- See Also:
-
DELETE_VALUE
public static final int DELETE_VALUEThe 'DELETE' literal value.- See Also:
-
PATCH_VALUE
public static final int PATCH_VALUEThe 'PATCH' literal value.- See Also:
-
MERGE_VALUE
public static final int MERGE_VALUEThe 'MERGE' literal value.- See Also:
-
OPTIONS_VALUE
public static final int OPTIONS_VALUEThe 'OPTIONS' literal value.- See Also:
-
TRACE_VALUE
public static final int TRACE_VALUEThe 'TRACE' literal value.- See Also:
-
CONNECT_VALUE
public static final int CONNECT_VALUEThe 'CONNECT' literal value.- See Also:
-
PROPFIND_VALUE
public static final int PROPFIND_VALUEThe 'PROPFIND' literal value.- See Also:
-
PROPPATCH_VALUE
public static final int PROPPATCH_VALUEThe 'PROPPATCH' literal value.- See Also:
-
MOVE_VALUE
public static final int MOVE_VALUEThe 'MOVE' literal value.- See Also:
-
COPY_VALUE
public static final int COPY_VALUEThe 'COPY' literal value.- See Also:
-
LOCK_VALUE
public static final int LOCK_VALUEThe 'LOCK' literal value.- See Also:
-
UNLOCK_VALUE
public static final int UNLOCK_VALUEThe 'UNLOCK' literal value.- See Also:
-
MKCOL_VALUE
public static final int MKCOL_VALUEThe 'MKCOL' literal value.- See Also:
-
ANY_VALUE
public static final int ANY_VALUEThe 'Any' literal value.- See Also:
-
VALUES
A public read-only list of all the 'HTTP Method' enumerators.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
get
Returns the 'HTTP Method' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
Returns the 'HTTP Method' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
Returns the 'HTTP Method' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
.
-
getValue
public int getValue()- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<HTTPMethod>
-