static enum HierarchicalUriComponents.Type extends java.lang.Enum<HierarchicalUriComponents.Type>
Contains methods to indicate whether a given character is valid in a specific URI component.
Enum Constant and Description |
---|
AUTHORITY |
FRAGMENT |
HOST |
PATH |
PATH_SEGMENT |
PORT |
QUERY |
QUERY_PARAM |
SCHEME |
USER_INFO |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isAllowed(int c)
Indicates whether the given character is allowed in this URI component.
|
protected boolean |
isAlpha(int c)
Indicates whether the given character is in the
ALPHA set. |
protected boolean |
isDigit(int c)
Indicates whether the given character is in the
DIGIT set. |
protected boolean |
isGenericDelimiter(int c)
Indicates whether the given character is in the
gen-delims set. |
protected boolean |
isPchar(int c)
Indicates whether the given character is in the
pchar set. |
protected boolean |
isReserved(char c)
Indicates whether the given character is in the
reserved set. |
protected boolean |
isSubDelimiter(int c)
Indicates whether the given character is in the
sub-delims set. |
protected boolean |
isUnreserved(int c)
Indicates whether the given character is in the
unreserved set. |
static HierarchicalUriComponents.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HierarchicalUriComponents.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HierarchicalUriComponents.Type SCHEME
public static final HierarchicalUriComponents.Type AUTHORITY
public static final HierarchicalUriComponents.Type USER_INFO
public static final HierarchicalUriComponents.Type HOST
public static final HierarchicalUriComponents.Type PORT
public static final HierarchicalUriComponents.Type PATH
public static final HierarchicalUriComponents.Type PATH_SEGMENT
public static final HierarchicalUriComponents.Type QUERY
public static final HierarchicalUriComponents.Type QUERY_PARAM
public static final HierarchicalUriComponents.Type FRAGMENT
public static HierarchicalUriComponents.Type[] values()
for (HierarchicalUriComponents.Type c : HierarchicalUriComponents.Type.values()) System.out.println(c);
public static HierarchicalUriComponents.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract boolean isAllowed(int c)
true
if the character is allowed; false
otherwiseprotected boolean isAlpha(int c)
ALPHA
set.protected boolean isDigit(int c)
DIGIT
set.protected boolean isGenericDelimiter(int c)
gen-delims
set.protected boolean isSubDelimiter(int c)
sub-delims
set.protected boolean isReserved(char c)
reserved
set.protected boolean isUnreserved(int c)
unreserved
set.protected boolean isPchar(int c)
pchar
set.