Enum StructuredFieldType
- java.lang.Object
-
- java.lang.Enum<StructuredFieldType>
-
- org.apache.hc.core5.http.structured.StructuredFieldType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StructuredFieldType>
public enum StructuredFieldType extends java.lang.Enum<StructuredFieldType>
Structured Field bare Item types.- Since:
- 5.5
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANBoolean.BYTE_SEQUENCEByte Sequence.DATEDate expressed as seconds since the Unix epoch.DECIMALDecimal.DISPLAY_STRINGUnicode Display String.INTEGERInteger.STRINGPrintable ASCII String.TOKENToken.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StructuredFieldTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StructuredFieldType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final StructuredFieldType INTEGER
Integer.
-
DECIMAL
public static final StructuredFieldType DECIMAL
Decimal.
-
STRING
public static final StructuredFieldType STRING
Printable ASCII String.
-
TOKEN
public static final StructuredFieldType TOKEN
Token.
-
BYTE_SEQUENCE
public static final StructuredFieldType BYTE_SEQUENCE
Byte Sequence.
-
BOOLEAN
public static final StructuredFieldType BOOLEAN
Boolean.
-
DATE
public static final StructuredFieldType DATE
Date expressed as seconds since the Unix epoch.
-
DISPLAY_STRING
public static final StructuredFieldType DISPLAY_STRING
Unicode Display String.
-
-
Method Detail
-
values
public static StructuredFieldType[] 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 (StructuredFieldType c : StructuredFieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StructuredFieldType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-