public enum ParamFormat extends Enum<ParamFormat>
UonSerializer.UON_paramFormat
setting.Enum Constant and Description |
---|
PLAINTEXT
Serialize as plain text.
|
UON
Use UON notation for values.
|
Modifier and Type | Method and Description |
---|---|
static ParamFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParamFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParamFormat UON
String values such as
Boolean strings (
public static final ParamFormat PLAINTEXT
Strings will never be quoted or escaped.
Maps and array constructs (
Note that this can cause errors during parsing if you're using the URL-encoding parser to parse the results since
UON constructs won't be differentiable.
However, this is not an issue if you're simply creating queries or form posts against 3rd-party interfaces.
public static ParamFormat[] values()
for (ParamFormat c : ParamFormat.values()) System.out.println(c);
public static ParamFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.