Enum Constant and Description |
---|
DIFF_P
diff to previous version (link prefix)
|
DIFF_S
reserved (not used)
|
ERROR
misc error occurred
|
HIST_L
show the history for a file (link prefix)
|
HIST_P
reserved (not used)
|
HIST_S
reserved (not used)
|
MORE_P
show more lines.
|
MORE_S
reserved (not used)
|
NOT_FOUND
related source file or directory not found/unavailable/ignored
|
RAW_P
Download file (link prefix)
|
RSS_P
RSS XML Feed of latest changes (link prefix)
|
SEARCH_O
opensearch description page
|
SEARCH_P
full blown search from main page or top bar (link prefix)
|
SEARCH_R
search from cross reference, can lead to direct match (which opens
directly) or to a matches Summary page
|
UNKNOWN
unknown prefix
|
XREF_P
a cross reference
|
XREF_S
a show cross reference, i.e.
|
Modifier and Type | Method and Description |
---|---|
static Prefix |
get(java.lang.String servletPath)
Get the prefix of the given path.
|
java.lang.String |
toString()
Get the string used as prefix.
|
static Prefix |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Prefix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Prefix UNKNOWN
public static final Prefix XREF_P
public static final Prefix XREF_S
public static final Prefix MORE_P
public static final Prefix MORE_S
public static final Prefix DIFF_P
public static final Prefix DIFF_S
public static final Prefix HIST_P
public static final Prefix HIST_S
public static final Prefix HIST_L
public static final Prefix RSS_P
public static final Prefix RAW_P
public static final Prefix SEARCH_P
public static final Prefix SEARCH_R
public static final Prefix SEARCH_O
public static final Prefix NOT_FOUND
public static final Prefix ERROR
public static Prefix[] values()
for (Prefix c : Prefix.values()) System.out.println(c);
public static Prefix 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 java.lang.String toString()
toString
in class java.lang.Enum<Prefix>
public static Prefix get(java.lang.String servletPath)
servletPath
- path to checkUNKNOWN
if path is null
or has
no or unknown prefix, the corresponding prefix otherwise.toString()