edu.neu.ccs.demeterf.http.classes
Enum HTTPReq.ReqType
java.lang.Object
java.lang.Enum<HTTPReq.ReqType>
edu.neu.ccs.demeterf.http.classes.HTTPReq.ReqType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<HTTPReq.ReqType>
- Enclosing class:
- HTTPReq
public static enum HTTPReq.ReqType
- extends java.lang.Enum<HTTPReq.ReqType>
Request Types
Method Summary |
static HTTPReq.ReqType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HTTPReq.ReqType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
GET
public static final HTTPReq.ReqType GET
POST
public static final HTTPReq.ReqType POST
HEAD
public static final HTTPReq.ReqType HEAD
OTHER
public static final HTTPReq.ReqType OTHER
values
public static HTTPReq.ReqType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (HTTPReq.ReqType c : HTTPReq.ReqType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HTTPReq.ReqType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null