public enum VootRestHttpMethod extends Enum<VootRestHttpMethod>
Enum Constant and Description |
---|
DELETE
DELETE
|
GET
GET
|
POST
POST
|
PUT
PUT
|
Modifier and Type | Method and Description |
---|---|
static VootRestHttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VootRestHttpMethod |
valueOfIgnoreCase(String string,
boolean exceptionOnNotFound)
Do a case-insensitive matching.
|
static VootRestHttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VootRestHttpMethod GET
public static final VootRestHttpMethod POST
public static final VootRestHttpMethod PUT
public static final VootRestHttpMethod DELETE
public static VootRestHttpMethod[] values()
for (VootRestHttpMethod c : VootRestHttpMethod.values()) System.out.println(c);
public static VootRestHttpMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static VootRestHttpMethod valueOfIgnoreCase(String string, boolean exceptionOnNotFound)
string
- the input string to be matched with one HTTP method.exceptionOnNotFound
- true to throw exception if method not found.Copyright © 2016 Internet2. All rights reserved.