public static enum HttpOpener.Method extends java.lang.Enum<HttpOpener.Method>
| Enum Constant and Description |
|---|
DELETE |
GET |
HEAD |
OPTIONS |
POST |
PUT |
TRACE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getRequestHasBody()
Checks whether the request method accepts a request body.
|
boolean |
getResponseHasBody()
Checks whether the request method returns a response body.
|
static HttpOpener.Method |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpOpener.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpOpener.Method DELETE
public static final HttpOpener.Method GET
public static final HttpOpener.Method HEAD
public static final HttpOpener.Method OPTIONS
public static final HttpOpener.Method POST
public static final HttpOpener.Method PUT
public static final HttpOpener.Method TRACE
public static HttpOpener.Method[] values()
for (HttpOpener.Method c : HttpOpener.Method.values()) System.out.println(c);
public static HttpOpener.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 nullpublic boolean getRequestHasBody()
public boolean getResponseHasBody()