Enum Class GrouperHttpMethod
- All Implemented Interfaces:
Serializable
,Comparable<GrouperHttpMethod>
,Constable
Types of http methods complete with constructors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.http.client.methods.HttpRequestBase
newHttpMethod
(String url) Constructor.abstract boolean
static GrouperHttpMethod
Returns the enum constant of this class with the specified name.static GrouperHttpMethod
valueOfIgnoreCase
(String string, boolean exceptionOnNull) do a case-insensitive matchingstatic GrouperHttpMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
post
Post method -
put
Put method. -
delete
Delete method. -
patch
Patch method. -
get
Get method.
-
-
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
-
supportsRequestBody
public abstract boolean supportsRequestBody() -
newHttpMethod
Constructor.- Parameters:
url
- is the url to call.- Returns:
- a new http method.
-
valueOfIgnoreCase
do a case-insensitive matching- Parameters:
string
-exceptionOnNull
- will not allow null or blank entries- Returns:
- the enum or null or exception if not found
-