Package org.glassfish.api.admin
Enum RestEndpoint.OpType
- java.lang.Object
-
- java.lang.Enum<RestEndpoint.OpType>
-
- org.glassfish.api.admin.RestEndpoint.OpType
-
- All Implemented Interfaces:
Serializable
,Comparable<RestEndpoint.OpType>
- Enclosing class:
- RestEndpoint
public static enum RestEndpoint.OpType extends Enum<RestEndpoint.OpType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestEndpoint.OpType
valueOf(String name)
Returns the enum constant of this type with the specified name.static RestEndpoint.OpType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final RestEndpoint.OpType GET
-
PUT
public static final RestEndpoint.OpType PUT
-
POST
public static final RestEndpoint.OpType POST
-
DELETE
public static final RestEndpoint.OpType DELETE
-
-
Method Detail
-
values
public static RestEndpoint.OpType[] 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 (RestEndpoint.OpType c : RestEndpoint.OpType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestEndpoint.OpType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-