public enum EncodingMode extends Enum<EncodingMode>
| Enum Constant and Description |
|---|
FORM
FORM encodes the whole string with the
x-www-form-urlencoded also known as default form encoding. |
PRESERVE_PATH
PRESERVE_PATH encodes the whole string like the
FORM but preserve the path separators. |
| Modifier and Type | Method and Description |
|---|---|
static EncodingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncodingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodingMode FORM
x-www-form-urlencoded also known as default form encoding. For
instance the string "/a/b" is encoded to "%2Fa%2Fb".public static final EncodingMode PRESERVE_PATH
FORM but preserve the path separators. For instance the string
"/a b" is enocded to "/a+b".public static EncodingMode[] values()
for (EncodingMode c : EncodingMode.values()) System.out.println(c);
public static EncodingMode 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 © 2017 JBoss by Red Hat. All Rights Reserved.