Package net.aifusion.cimserver
Enum HttpMethod
- All Implemented Interfaces:
Serializable
,Comparable<HttpMethod>
,java.lang.constant.Constable
Class to manage known HTTP Methods. See RFC 7231 Section 4
- Author:
- Sharad Singhal
-
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 resourceRemove all current representations of the target resourceTransfer a current representation of the target resourceSame as GET, but only transfer the status line and header sectionDescribe the communication options for the target resourcePerform resource-specific processing on the request payloadReplace all current representations of the target resource with the request payloadPerform a message loop-back test along the path to the target resource. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpMethod
Get an HttpMethod corresponding to the given stringstatic HttpMethod
Returns the enum constant of this type with the specified name.static HttpMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
lookup
Get an HttpMethod corresponding to the given string- Parameters:
method
- - case insensitive string to match. Note that RFC 7231 Section 4.1 recommends all uppercase strings be used for standard methods- Returns:
- - corresponding HttpMethod. Null if none found
-