|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RequestType> net.sf.djdoc.servlet.RequestType
public enum RequestType
This enum is used to differentiate between different (in terms of business logic performed and/or output returned) types of HTTP requests.
Enum Constant Summary | |
---|---|
API_LIST
The API_LIST RequestType corresponds to all
HTTP requests retrieving the list of all registered APIs. |
|
BUNCH_LIST
This RequestType corresponds to the HTTP requests retrieving
a list of all packages for a registered API. |
|
FILE
The FILE RequestType is used for HTTP requests
that simply copy the contents of a file into the response output stream. |
|
ITEM_LIST
The ITEM_LIST type is used for HTTP requests retrieving a list
of all class items in a package of a registered API. |
Method Summary | |
---|---|
Action |
getAction()
Getter method for the Action instance of this
RequestType . |
static RequestType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RequestType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RequestType API_LIST
API_LIST
RequestType
corresponds to all
HTTP requests retrieving the list of all registered APIs.
public static final RequestType BUNCH_LIST
RequestType
corresponds to the HTTP requests retrieving
a list of all packages for a registered API.
public static final RequestType ITEM_LIST
ITEM_LIST
type is used for HTTP requests retrieving a list
of all class items in a package of a registered API.
public static final RequestType FILE
FILE
RequestType
is used for HTTP requests
that simply copy the contents of a file into the response output stream.
Method Detail |
---|
public static final RequestType[] values()
for(RequestType c : RequestType.values()) System.out.println(c);
public static RequestType 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 namepublic Action getAction()
Action
instance of this
RequestType
.
Action
instance corresponding to this
RequestType
|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |