Package org.iplass.mtp.webapi.definition
Enum MethodType
- java.lang.Object
-
- java.lang.Enum<MethodType>
-
- org.iplass.mtp.webapi.definition.MethodType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MethodType>,java.lang.constant.Constable
public enum MethodType extends java.lang.Enum<MethodType>
WebAPI(REST)時のMethod種別を表すenum。
-
-
Field Summary
Fields Modifier and Type Field Description static MethodType[]METHOD_ALL
-
Method Summary
Modifier and Type Method Description static MethodTypevalueOf(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.
-
-
-
Enum Constant Detail
-
GET
public static final MethodType GET
-
POST
public static final MethodType POST
-
PUT
public static final MethodType PUT
-
DELETE
public static final MethodType DELETE
-
-
Field Detail
-
METHOD_ALL
public static MethodType[] METHOD_ALL
-
-
Method Detail
-
values
public static MethodType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodType 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 namejava.lang.NullPointerException- if the argument is null
-
-