Enum Constant and Description |
---|
CONNECT
The CONNECT method converts the request connection to a transparent TCP/IP tunnel,
usually to facilitate SSL-encrypted communication (HTTPS) through an unencrypted HTTP proxy.
|
DELETE
DELETE is pretty easy to understand.
|
GET
The HTTP GET method is used to retrieve (or read) a representation of a resource.
|
HEAD
The HEAD method asks for a response identical to that of a GET request, but without the response body.
|
OPTIONS
The OPTIONS method returns the HTTP methods that the server supports for the specified URL.
|
POST
The POST verb is most-often utilized for creation of new resources.
|
PUT
PUT is most-often utilized for UPDATE capabilities, PUT-ing to a known resource URI with the request body containing the newly-updated representation of the original resource.
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
label |
Modifier and Type | Method and Description |
---|---|
static Method |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Method HEAD
public static final Method CONNECT
public static final Method OPTIONS
public static final Method GET
public static final Method PUT
public static final Method POST
public static final Method DELETE
public static Method[] values()
for (Method c : Method.values()) System.out.println(c);
public static Method 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 nullstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.