Enum Class EncodingMode
- All Implemented Interfaces:
Serializable,Comparable<EncodingMode>,Constable
Specifies how a string value should be encoded in an URL.
- Version:
- $Revision$
- Author:
- Julien Viet
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFORM encodes the whole string with thex-www-form-urlencodedalso known as default form encoding.PRESERVE_PATH encodes the whole string like theFORMbut preserve the path separators. -
Method Summary
Modifier and TypeMethodDescriptionstatic EncodingModeReturns the enum constant of this class with the specified name.static EncodingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORM
FORM encodes the whole string with thex-www-form-urlencodedalso known as default form encoding. For instance the string "/a/b" is encoded to "%2Fa%2Fb". -
PRESERVE_PATH
PRESERVE_PATH encodes the whole string like theFORMbut preserve the path separators. For instance the string "/a b" is enocded to "/a+b".
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-