Package com.upokecenter.util
Enum URIUtility.ParseMode
- java.lang.Object
-
- java.lang.Enum<URIUtility.ParseMode>
-
- com.upokecenter.util.URIUtility.ParseMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<URIUtility.ParseMode>
- Enclosing class:
- URIUtility
public static enum URIUtility.ParseMode extends java.lang.Enum<URIUtility.ParseMode>
Specifies whether certain characters are allowed when parsing IRIs and URIs.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IRILenientThe rules only check for the appropriate delimiters when splitting the path, without checking if all the characters in each component are valid.IRIStrictThe rules follow the syntax for parsing IRIs.IRISurrogateLenientThe rules only check for the appropriate delimiters when splitting the path, without checking if all the characters in each component are valid.URILenientThe rules only check for the appropriate delimiters when splitting the path, without checking if all the characters in each component are valid.URIStrictThe rules follow the syntax for parsing IRIs, except that code points outside the Basic Latin range (U+0000 to U+007F) are not allowed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URIUtility.ParseModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static URIUtility.ParseMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IRIStrict
public static final URIUtility.ParseMode IRIStrict
The rules follow the syntax for parsing IRIs. In particular, many code points outside the Basic Latin range (U+0000 to U+007F) are allowed. Strings with unpaired surrogate code points are considered invalid.
-
URIStrict
public static final URIUtility.ParseMode URIStrict
The rules follow the syntax for parsing IRIs, except that code points outside the Basic Latin range (U+0000 to U+007F) are not allowed.
-
IRILenient
public static final URIUtility.ParseMode IRILenient
The rules only check for the appropriate delimiters when splitting the path, without checking if all the characters in each component are valid. Even with this mode, strings with unpaired surrogate code points are considered invalid.
-
URILenient
public static final URIUtility.ParseMode URILenient
The rules only check for the appropriate delimiters when splitting the path, without checking if all the characters in each component are valid. Code points outside the Basic Latin range (U+0000 to U+007F) are not allowed.
-
IRISurrogateLenient
public static final URIUtility.ParseMode IRISurrogateLenient
The rules only check for the appropriate delimiters when splitting the path, without checking if all the characters in each component are valid. Unpaired surrogate code points are treated as though they were replacement characters instead for the purposes of these rules, so that strings with those code points are not considered invalid strings.
-
-
Method Detail
-
values
public static URIUtility.ParseMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (URIUtility.ParseMode c : URIUtility.ParseMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static URIUtility.ParseMode valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-