java.io.Serializable, java.lang.Comparable<MethodType>public enum MethodType extends java.lang.Enum<MethodType>
Created: 2008. 03. 26 AM 12:58:38
| Enum Constant | Description |
|---|---|
ALL |
|
DELETE |
deletes a resource.
|
GET |
retrieves a representation of a resource without side-effects
(nothing changes on the server).
|
HEAD |
retrieves just the resource meta-information (headers)
i.e.
|
OPTIONS |
returns the actions supported for specified the resource - also without side-effects.
|
PATCH |
partial modification of a resource.
|
POST |
creates a resource.
|
PUT |
(completely) replaces an existing resource.
|
TRACE |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
containsTo(MethodType[] types) |
|
boolean |
matches(java.lang.String type) |
|
static MethodType[] |
parse(java.lang.String value) |
Returns an array of
MethodType with a value represented
by the specified String. |
static MethodType |
resolve(java.lang.String methodType) |
Returns a
MethodType with a value represented
by the specified String. |
static java.lang.String |
stringify(MethodType[] types) |
Converts an array of
MethodType to a comma separated String. |
static MethodType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MethodType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodType ALL
public static final MethodType GET
public static final MethodType POST
public static final MethodType PUT
public static final MethodType PATCH
public static final MethodType DELETE
public static final MethodType HEAD
public static final MethodType OPTIONS
public static final MethodType TRACE
public static MethodType[] values()
for (MethodType c : MethodType.values()) System.out.println(c);
public static MethodType 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 boolean containsTo(MethodType[] types)
public boolean matches(java.lang.String type)
public static MethodType resolve(java.lang.String methodType)
MethodType with a value represented
by the specified String.methodType - the method type as a StringMethodType, may be nullpublic static MethodType[] parse(java.lang.String value)
MethodType with a value represented
by the specified String.value - the method type as a StringMethodType, may be nullpublic static java.lang.String stringify(MethodType[] types)
MethodType to a comma separated String.types - an array of MethodTypeStringCopyright © 2008–2018 The Aspectran Project. All rights reserved.