public static enum Context.UriPart extends Enum<Context.UriPart>
We need to distinguish these so that we can
javascript:
.
Enum Constant and Description |
---|
FRAGMENT
In the fragment.
|
NONE
Not in a URI.
|
PRE_QUERY
In the scheme, authority, or path.
|
QUERY
In the query portion.
|
START
Where a scheme might be seen.
|
UNKNOWN
Not
NONE , but unknown. |
UNKNOWN_PRE_FRAGMENT
|
Modifier and Type | Method and Description |
---|---|
static Context.UriPart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Context.UriPart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Context.UriPart NONE
public static final Context.UriPart START
^http://host/path?k=v#frag
.public static final Context.UriPart PRE_QUERY
h^ttp://host/path^?k=v#frag
.public static final Context.UriPart QUERY
http://host/path?^k=v^#frag
public static final Context.UriPart FRAGMENT
http://host/path?k=v#^frag
public static final Context.UriPart UNKNOWN_PRE_FRAGMENT
public static final Context.UriPart UNKNOWN
NONE
, but unknown. Used to join different contexts.public static Context.UriPart[] values()
for (Context.UriPart c : Context.UriPart.values()) System.out.println(c);
public static Context.UriPart 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 null