Enum Class EncodedSolidusHandling
- All Implemented Interfaces:
Serializable, Comparable<EncodedSolidusHandling>, Constable
Enumerates the possible handling strategies for encoded solidus characters (%2F) in URI paths.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDecode the encoded solidus back to a forward slash character.Pass the encoded solidus through without modification.Reject the request containing an encoded solidus. -
Method Summary
Modifier and TypeMethodDescriptionstatic EncodedSolidusHandlingfromString(String from) Converts a string to the corresponding handling strategy.getValue()Returns the string value for this handling strategy.static EncodedSolidusHandlingReturns the enum constant of this class with the specified name.static EncodedSolidusHandling[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DECODE
Decode the encoded solidus back to a forward slash character. -
REJECT
Reject the request containing an encoded solidus. -
PASS_THROUGH
Pass the encoded solidus through without modification.
-
-
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
-
getValue
Returns the string value for this handling strategy.- Returns:
- the string value
-
fromString
Converts a string to the corresponding handling strategy.- Parameters:
from- the string to convert- Returns:
- the matching handling strategy
- Throws:
IllegalStateException- if the string does not match any known strategy
-