Package dk.mada.jaxrs.model.api
Enum Class HttpMethod
- All Implemented Interfaces:
Serializable
,Comparable<HttpMethod>
,Constable
HTTP methods.
Ordered as in the RFC.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEstablish a tunnel to the server identified by the target resource.Remove all current representations of the target resource.Transfer a current representation of the target resource.Same as GET, but only transfer the status line and header section.Describe the communication options for the target resource.Apply partial modifications to a resource.Perform resource-specific processing on the request payload.Replace all current representations of the target resource with the request payload.Perform a message loop-back test along the path to the target resource. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Transfer a current representation of the target resource. -
HEAD
Same as GET, but only transfer the status line and header section. -
POST
Perform resource-specific processing on the request payload. -
PUT
Replace all current representations of the target resource with the request payload. -
DELETE
Remove all current representations of the target resource. -
CONNECT
Establish a tunnel to the server identified by the target resource. -
OPTIONS
Describe the communication options for the target resource. -
TRACE
Perform a message loop-back test along the path to the target resource. -
PATCH
Apply partial modifications to a resource.
-
-
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
-