public static enum IHttpRequest.HttpCommand extends java.lang.Enum<IHttpRequest.HttpCommand>
Enum Constant and Description |
---|
CONNECT
"CONNECT"
|
DELETE
"DELETE"
|
GET
"GET"
|
HEAD
"HEAD"
|
OPTIONS
"OPTIONS"
|
POST
"POST"
|
PUT
"PUT"
|
TRACE
"TRACE"
|
Modifier and Type | Method and Description |
---|---|
static IHttpRequest.HttpCommand |
get(java.lang.String command)
Return a matched
IHttpRequest.HttpCommand according to the command string. |
java.lang.String |
value()
getter of
value |
static IHttpRequest.HttpCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IHttpRequest.HttpCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IHttpRequest.HttpCommand OPTIONS
public static final IHttpRequest.HttpCommand GET
public static final IHttpRequest.HttpCommand HEAD
public static final IHttpRequest.HttpCommand POST
public static final IHttpRequest.HttpCommand PUT
public static final IHttpRequest.HttpCommand DELETE
public static final IHttpRequest.HttpCommand TRACE
public static final IHttpRequest.HttpCommand CONNECT
public static IHttpRequest.HttpCommand[] values()
for (IHttpRequest.HttpCommand c : IHttpRequest.HttpCommand.values()) System.out.println(c);
public static IHttpRequest.HttpCommand valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()
value
public static IHttpRequest.HttpCommand get(java.lang.String command)
IHttpRequest.HttpCommand
according to the command string.command
- String, the string command to compare with value()
.Copyright © SAS Institute. All Rights Reserved.