| Enum Constant and Description |
|---|
ACTIVATE |
ADD_COMMENT |
ALL_CATEGORY |
ALL_LOT |
ALL_USER |
AUTHORS |
BROAD_CATEGORY |
DEPENDENCY |
DOWNLOAD_HISTORY |
DOWNLOAD_LIST |
DOWNLOAD_LOT |
DOWNLOADLIST_LOT |
GET_COMMENT |
LEX_CATEGORY |
LEX_TYPE |
LOT |
LOTGROUP |
ME |
REGISTER |
SEARCH |
USER |
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
base |
private java.lang.String |
url |
private static java.lang.String |
version |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addParameters(org.restlet.data.Reference ref,
java.util.Map<java.lang.String,java.lang.Object> param)
Static function to make adding GET Parameters easier for myself
|
java.lang.String |
toString() |
java.lang.String |
url() |
java.lang.String |
url(int id) |
static Route |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Route[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Route ME
public static final Route USER
public static final Route ALL_USER
public static final Route DOWNLOAD_LIST
public static final Route DOWNLOAD_HISTORY
public static final Route REGISTER
public static final Route ACTIVATE
public static final Route LOT
public static final Route ALL_LOT
public static final Route DOWNLOAD_LOT
public static final Route DOWNLOADLIST_LOT
public static final Route ADD_COMMENT
public static final Route GET_COMMENT
public static final Route DEPENDENCY
public static final Route SEARCH
public static final Route BROAD_CATEGORY
public static final Route LEX_CATEGORY
public static final Route LEX_TYPE
public static final Route LOTGROUP
public static final Route AUTHORS
public static final Route ALL_CATEGORY
private static final java.lang.String base
private static final java.lang.String version
private java.lang.String url
public static Route[] values()
for (Route c : Route.values()) System.out.println(c);
public static Route 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<Route>public java.lang.String url()
public java.lang.String url(int id)
id - The ID to be filled into the Endpointprotected static void addParameters(org.restlet.data.Reference ref,
java.util.Map<java.lang.String,java.lang.Object> param)
ref - Reference (part of Restlet library)param - Map of Strings (key) and Objects (values)