Package org.apache.juneau.httppart
Enum HttpPartCollectionFormat
- All Implemented Interfaces:
Serializable
,Comparable<HttpPartCollectionFormat>
,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 ConstantDescriptionComma-separated values (e.g.Corresponds to multiple parameter instances instead of multiple values for a single instance (e.g.Not specified.Pipe-separated values (e.g.Space-separated values (e.g.Tab-separated values (e.g.UON collection notation (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpPartCollectionFormat
fromString
(String value) Create from lowercase string.toString()
static HttpPartCollectionFormat
Returns the enum constant of this type with the specified name.static HttpPartCollectionFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CSV
Comma-separated values (e.g."foo,bar" ). -
SSV
Space-separated values (e.g."foo bar" ). -
TSV
Tab-separated values (e.g."foo\tbar" ). -
PIPES
Pipe-separated values (e.g."foo|bar" ). -
MULTI
Corresponds to multiple parameter instances instead of multiple values for a single instance (e.g."foo=bar&foo=baz" ). -
UONC
UON collection notation (e.g."@(foo,bar)" ). -
NO_COLLECTION_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 string.- Parameters:
value
- The enum name.- Returns:
- The enum.
-
toString
- Overrides:
toString
in classEnum<HttpPartCollectionFormat>
-