|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RequestMethod>
com.univocity.api.net.RequestMethod
public enum RequestMethod
The set of HTTP/1.1 methods, plus RFC 5789. Each method type identifies an action to be performed on a the remote resource.
HttpRequest,
HttpResponse,
HttpResponseReader,
UrlReaderProvider| Enum Constant Summary | |
|---|---|
CONNECT
For use with a proxy that can dynamically switch to being a tunnel (e.g. |
|
DELETE
Requests to delete the resource identified by the Request-URI. |
|
GET
Requests to retrieve whatever information is identified by the Request-URI |
|
HEAD
Identical to GET except that the server must not return a message-body in the response. |
|
OPTIONS
Represents a request for information about the communication options available on the request/response chain identified by the Request-URI. |
|
PATCH
Requests that a set of changes, described in the request entity, must be applied to the resource identified by the request’s URI. |
|
POST
Requests that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line |
|
PUT
Requests for the entity enclosed in the message to be stored under the supplied Request-URI. |
|
TRACE
Used to invoke a remote, application-layer loop-back of the request message. |
|
| Method Summary | |
|---|---|
boolean |
hasBody()
Checks whether this request method type supports a message body |
static RequestMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RequestMethod[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RequestMethod DELETE
public static final RequestMethod GET
public static final RequestMethod PATCH
public static final RequestMethod POST
public static final RequestMethod PUT
public static final RequestMethod HEAD
GET except that the server must not return a message-body in the response.
public static final RequestMethod OPTIONS
public static final RequestMethod TRACE
public static final RequestMethod CONNECT
| Method Detail |
|---|
public static RequestMethod[] values()
for (RequestMethod c : RequestMethod.values()) System.out.println(c);
public static RequestMethod valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic final boolean hasBody()
true if a message body is supported, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||