Package ucar.httpservices
Enum HTTPFormBuilder.Sort
- java.lang.Object
-
- java.lang.Enum<HTTPFormBuilder.Sort>
-
- ucar.httpservices.HTTPFormBuilder.Sort
-
- All Implemented Interfaces:
Serializable
,Comparable<HTTPFormBuilder.Sort>
- Enclosing class:
- HTTPFormBuilder
protected static enum HTTPFormBuilder.Sort extends Enum<HTTPFormBuilder.Sort>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.http.entity.ContentType
contenttype(HTTPFormBuilder.Sort sort)
static String
mimetype(HTTPFormBuilder.Sort sort)
static HTTPFormBuilder.Sort
valueOf(String name)
Returns the enum constant of this type with the specified name.static HTTPFormBuilder.Sort[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final HTTPFormBuilder.Sort TEXT
-
BYTES
public static final HTTPFormBuilder.Sort BYTES
-
STREAM
public static final HTTPFormBuilder.Sort STREAM
-
FILE
public static final HTTPFormBuilder.Sort FILE
-
-
Method Detail
-
values
public static HTTPFormBuilder.Sort[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HTTPFormBuilder.Sort c : HTTPFormBuilder.Sort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HTTPFormBuilder.Sort valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
contenttype
public static org.apache.http.entity.ContentType contenttype(HTTPFormBuilder.Sort sort)
-
mimetype
public static String mimetype(HTTPFormBuilder.Sort sort)
-
-