Package de.uplanet.net.http
Enum Class HTTP_METHOD
- All Implemented Interfaces:
Serializable,Comparable<HTTP_METHOD>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if this method matches the given method value.static StringtoHeaderValue(HTTP_METHOD... p_methods) Convert the given HTTP methods to a comma-separated list suitable for being used as a HTTP header value.static StringtoHeaderValue(Collection<HTTP_METHOD> p_methods) Convert the given HTTP methods to a comma-separated list suitable for being used as a HTTP header value.toNames(HTTP_METHOD... p_methods) Convert the given HTTP methods to a list of strings.toNames(Collection<HTTP_METHOD> p_methods) Convert the given HTTP methods to a list of strings.static HTTP_METHODReturns the enum constant of this class with the specified name.static HTTP_METHOD[]values()Returns an array containing the constants of this enum class, 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
-
HEAD
-
POST
-
PUT
-
PATCH
-
DELETE
-
OPTIONS
-
PROPFIND
The WebDAVPROPFINDmethod. -
PROPPATCH
The WebDAVPROPPATCHmethod. -
MKCOL
The WebDAVMKCOLmethod. -
COPY
The WebDAVCOPYmethod. -
MOVE
The WebDAVMOVEmethod. -
LOCK
The WebDAVLOCKmethod. -
UNLOCK
The WebDAVUNLOCKmethod.
-
-
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
-
matches
Check if this method matches the given method value.- Parameters:
p_strMethod- The HTTP method.- Returns:
trueif the given value matches this method, orfalseotherwise.
-
toNames
Convert the given HTTP methods to a list of strings.- Parameters:
p_methods- The HTTP methods.- Returns:
- The given methods as a list of strings.
-
toNames
Convert the given HTTP methods to a list of strings.- Parameters:
p_methods- The HTTP methods.- Returns:
- The given methods as a list of strings.
-
toHeaderValue
Convert the given HTTP methods to a comma-separated list suitable for being used as a HTTP header value.If the list of given methods is empty,
nullwill be returned.- Parameters:
p_methods- The HTTP methods.- Returns:
- A comma-separated list of methods, or
null.
-
toHeaderValue
Convert the given HTTP methods to a comma-separated list suitable for being used as a HTTP header value.If the list of given methods is
nullor empty, this method returnsnull.- Parameters:
p_methods- The HTTP methods.- Returns:
- A comma-separated list of methods, or
null.
-