public static enum Http.Method extends Enum<Http.Method> implements Http.RequestMethod
methods.
It is extensible enumeration pattern.Http.RequestMethod| Enum Constant and Description |
|---|
DELETE
The DELETE method requests that the origin server delete the resource identified by the Request-URI.
|
GET
The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI.
|
HEAD
The HEAD method is identical to
GET except that the server MUST NOT return a message-body in the response. |
OPTIONS
The OPTIONS method represents a request for information about the communication options available
on the request/response chain identified by the Request-URI.
|
POST
The POST method is used to request that the origin server acceptedTypes the entity enclosed in the request
as a new subordinate of the resource identified by the Request-URI in the Request-Line.
|
PUT
The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
|
TRACE
The TRACE method is used to invoke a remote, application-layer loop- back of the request message.
|
| Modifier and Type | Method and Description |
|---|---|
static Http.Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcreate, namepublic static final Http.Method OPTIONS
public static final Http.Method GET
public static final Http.Method HEAD
GET except that the server MUST NOT return a message-body in the response.
The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information
sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied
by the request without transferring the entity-body itself. This method is often used for testing hypertext links
for validity, accessibility, and recent modification.public static final Http.Method POST
public static final Http.Method PUT
public static final Http.Method DELETE
public static final Http.Method TRACE
public static Http.Method[] values()
for (Http.Method c : Http.Method.values()) System.out.println(c);
public static Http.Method valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.