|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<HttpMethod>
com.atlassian.xwork.HttpMethod
public enum HttpMethod
Enumeration of the different HTTP methods used by the RestrictHttpMethodInterceptor.
Because this enumeration is designed for the use of the interceptor (for example it treats HEAD as a sub-method
of GET), it probably isn't useful for more general cases.
| Enum Constant Summary | |
|---|---|
ALL_DEFINED
Matches any method defined in standard HTTP/1.1 or WEBDAV |
|
ALL_RFC2616
Matches any method defined in standard HTTP/1.1 |
|
ANY_METHOD
Accept anything, even if it's not defined in this enumeration |
|
CONNECT
RFC2616 CONNECT method |
|
COPY
RFC2518 COPY method |
|
DELETE
RFC2616 DELETE method |
|
GET
RFC2616 GET method. |
|
HEAD
RFC2616 HEAD method |
|
LOCK
RFC2518 LOCK method |
|
MKCOL
RFC2518 MKCOL method |
|
MOVE
RFC2518 MOVE method |
|
OPTIONS
RFC2616 OPTIONS method |
|
PATCH
RFC2518 PATCH method |
|
POST
RFC2616 POST method |
|
PROPFIND
RFC2518 PROPFIND method |
|
PROPPATCH
RFC2518 PROPPATCH method |
|
PUT
RFC2616 PUT method |
|
TRACE
RFC2616 TRACE method |
|
UNLOCK
RFC2518 UNLOCK method |
|
| Method Summary | |
|---|---|
boolean |
matches(String methodName)
|
static HttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final HttpMethod GET
public static final HttpMethod POST
public static final HttpMethod PUT
public static final HttpMethod DELETE
public static final HttpMethod HEAD
public static final HttpMethod OPTIONS
public static final HttpMethod TRACE
public static final HttpMethod CONNECT
public static final HttpMethod PROPFIND
public static final HttpMethod PROPPATCH
public static final HttpMethod MKCOL
public static final HttpMethod COPY
public static final HttpMethod MOVE
public static final HttpMethod LOCK
public static final HttpMethod UNLOCK
public static final HttpMethod PATCH
public static final HttpMethod ALL_RFC2616
public static final HttpMethod ALL_DEFINED
public static final HttpMethod ANY_METHOD
| Method Detail |
|---|
public static HttpMethod[] values()
for (HttpMethod c : HttpMethod.values()) System.out.println(c);
public static HttpMethod valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean matches(String methodName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||