Top Description Fields Constructors Methods
org.apache.hc.core5.http

public final Enum Method

extends Enum<Method>
Class Inheritance
Imports
java.util.Locale, org.apache.hc.core5.util.Args

Common HTTP methods defined by the HTTP spec.
Since
5.0

Field Summary

Modifier and TypeField and Description
public static final Method
public static final Method
public static final Method
public static final Method
private final boolean
public static final Method
public static final Method
public static final Method
public static final Method
private final boolean
public static final Method

Constructor Summary

AccessConstructor and Description
private
Method(final boolean safe, final boolean idempotent)

Method Summary

Modifier and TypeMethod and Description
public boolean
public static boolean
isIdempotent(final String value)

public boolean
public static boolean
isSafe(final String value)

public boolean
isSame(final String value)

public static Method

Returns:

the Method for the given method name.
normalizedValueOf
(final String
A method name like "delete", "DELETE", or any mixed-case variant.
method
)

Returns the Method for a normalized value of a method name.

public static Method
public static Method[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CONNECTback to summary
public static final Method CONNECT
DELETEback to summary
public static final Method DELETE
GETback to summary
public static final Method GET
idempotentback to summary
private final boolean idempotent
OPTIONSback to summary
public static final Method OPTIONS
PATCHback to summary
public static final Method PATCH
POSTback to summary
public static final Method POST
PUTback to summary
public static final Method PUT
safeback to summary
private final boolean safe
TRACEback to summary
public static final Method TRACE

Constructor Detail

Methodback to summary
private Method(final boolean safe, final boolean idempotent)

Method Detail

isIdempotentback to summary
public boolean isIdempotent()
isIdempotentback to summary
public static boolean isIdempotent(final String value)
isSafeback to summary
public boolean isSafe()
isSafeback to summary
public static boolean isSafe(final String value)
isSameback to summary
public boolean isSame(final String value)
normalizedValueOfback to summary
public static Method normalizedValueOf(final String method)

Returns the Method for a normalized value of a method name.

Parameters
method:String

A method name like "delete", "DELETE", or any mixed-case variant.

Returns:Method

the Method for the given method name.

valueOfback to summary
public static Method valueOf(String name)
valuesback to summary
public static Method[] values()