Package org.apache.juneau.httppart
Enum HttpPartFormat
- All Implemented Interfaces:
Serializable
,Comparable<HttpPartFormat>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHexadecimal encoded octets (e.g.Spaced-separated hexadecimal encoded octets (e.g.BASE-64 encoded characters.64-bit floating point number.32-bit floating point number.Signed 32 bits.Signed 64 bits.Not specified.Used to hint UIs the input needs to be obscured.UON notation (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpPartFormat
fromString
(String value) Create from lowercase dashed name.boolean
isOneOf
(HttpPartFormat... list) Returnstrue if this format is in the provided list.toString()
static HttpPartFormat
Returns the enum constant of this type with the specified name.static HttpPartFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INT32
Signed 32 bits. -
INT64
Signed 64 bits. -
FLOAT
32-bit floating point number. -
DOUBLE
64-bit floating point number. -
BYTE
BASE-64 encoded characters. -
BINARY
Hexadecimal encoded octets (e.g."00FF" ). -
BINARY_SPACED
Spaced-separated hexadecimal encoded octets (e.g."00 FF" ). -
DATE
-
DATE_TIME
-
PASSWORD
Used to hint UIs the input needs to be obscured. -
UON
UON notation (e.g."(foo=bar,baz=@(qux,123))" ). -
NO_FORMAT
Not specified.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
fromString
Create from lowercase dashed name.- Parameters:
value
- The enum name.- Returns:
- The enum.
-
isOneOf
Returnstrue if this format is in the provided list.- Parameters:
list
- The list of formats to check against.- Returns:
true if this format is in the provided list.
-
toString
- Overrides:
toString
in classEnum<HttpPartFormat>
-