public static enum HttpSender.Type extends java.lang.Enum<HttpSender.Type>
| Enum Constant and Description |
|---|
FORM
Send data as a www form encoded list of key/values.
|
JSON
Send data as a structured JSON tree.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
static HttpSender.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpSender.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpSender.Type FORM
public static final HttpSender.Type JSON
public static HttpSender.Type[] values()
for (HttpSender.Type c : HttpSender.Type.values()) System.out.println(c);
public static HttpSender.Type 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 null@NonNull public java.lang.String getContentType()