Package septogeddon.pluginquery.http
Enum Class ProtocolMethod.General
- All Implemented Interfaces:
Serializable
,Comparable<ProtocolMethod.General>
,java.lang.constant.Constable
,ProtocolMethod
- Enclosing interface:
ProtocolMethod
public static enum ProtocolMethod.General
extends Enum<ProtocolMethod.General>
implements ProtocolMethod
General methods that are often used for RestfulAPI services
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface septogeddon.pluginquery.http.ProtocolMethod
ProtocolMethod.General
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the default HTTP Contextstatic ProtocolMethod.General
Returns the enum constant of this class with the specified name.static ProtocolMethod.General[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface septogeddon.pluginquery.http.ProtocolMethod
name
-
Enum Constant Details
-
GET
-
PUT
-
POST
-
PATCH
-
DELETE
-
TRACE
-
CONNECT
-
OPTIONS
-
HEAD
-
-
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
-
getContext
Get the default HTTP Context- Specified by:
getContext
in interfaceProtocolMethod
- Returns:
- HTTPContext instance
- See Also:
-