public static enum PSHTTPConnection.Method extends Enum<PSHTTPConnection.Method>
Enum Constant and Description |
---|
DELETE
For request using the HTTP DELETE method.
|
GET
For request using the HTTP GET method.
|
MULTIPART
A Form-Multipart request via POST.
|
PATCH
For request using the HTTP PATCH method.
|
POST
For request using the HTTP POST method.
|
PUT
For request using the HTTP PUT method.
|
Modifier and Type | Method and Description |
---|---|
static PSHTTPConnection.Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PSHTTPConnection.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PSHTTPConnection.Method GET
public static final PSHTTPConnection.Method POST
public static final PSHTTPConnection.Method PUT
public static final PSHTTPConnection.Method DELETE
public static final PSHTTPConnection.Method MULTIPART
public static final PSHTTPConnection.Method PATCH
public static PSHTTPConnection.Method[] values()
for (PSHTTPConnection.Method c : PSHTTPConnection.Method.values()) System.out.println(c);
public static PSHTTPConnection.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 © 2016 Allette Systems. All rights reserved.