public static enum RequestStatics.RequestType extends java.lang.Enum<RequestStatics.RequestType>
Enum Constant and Description |
---|
help |
java |
json |
png |
query |
txt |
www |
xml |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
_suffix
Suffix of the request - extension of the URL.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
requestName(java.lang.String requestUrl)
Returns the name of the request, that is the request url without the
request suffix.
|
static RequestStatics.RequestType |
requestType(java.lang.String requestUrl)
Returns the request type of a given URL.
|
static RequestStatics.RequestType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequestStatics.RequestType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestStatics.RequestType json
public static final RequestStatics.RequestType www
public static final RequestStatics.RequestType help
public static final RequestStatics.RequestType query
public static final RequestStatics.RequestType png
public static final RequestStatics.RequestType txt
public static final RequestStatics.RequestType java
public static final RequestStatics.RequestType xml
public final java.lang.String _suffix
public static RequestStatics.RequestType[] values()
for (RequestStatics.RequestType c : RequestStatics.RequestType.values()) System.out.println(c);
public static RequestStatics.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 namejava.lang.NullPointerException
- if the argument is nullpublic static RequestStatics.RequestType requestType(java.lang.String requestUrl)
public java.lang.String requestName(java.lang.String requestUrl)