public enum GrouperRestHttpMethod extends java.lang.Enum<GrouperRestHttpMethod>
Enum Constant and Description |
---|
DELETE
DELETE
|
GET
GET
|
POST
POST
|
PUT
PUT
|
Modifier and Type | Method and Description |
---|---|
abstract WsResponseBean |
service(GrouperVersion clientVersion,
java.util.List<java.lang.String> urlStrings,
WsRequestBean requestObject)
handle the incoming request based on HTTP method
|
static GrouperRestHttpMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GrouperRestHttpMethod |
valueOfIgnoreCase(java.lang.String string,
boolean exceptionOnNotFound)
do a case-insensitive matching
|
static GrouperRestHttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrouperRestHttpMethod GET
public static final GrouperRestHttpMethod POST
public static final GrouperRestHttpMethod PUT
public static final GrouperRestHttpMethod DELETE
public static GrouperRestHttpMethod[] values()
for (GrouperRestHttpMethod c : GrouperRestHttpMethod.values()) System.out.println(c);
public static GrouperRestHttpMethod 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 abstract WsResponseBean service(GrouperVersion clientVersion, java.util.List<java.lang.String> urlStrings, WsRequestBean requestObject)
clientVersion
- version of client, e.g. v1_3_000urlStrings
- not including the app name or servlet. for http://localhost/grouper-ws/servicesRest/groups/a:b
the urlStrings would be size two: {"group", "a:b"}requestObject
- is the request body converted to objectpublic static GrouperRestHttpMethod valueOfIgnoreCase(java.lang.String string, boolean exceptionOnNotFound) throws GrouperRestInvalidRequest
string
- exceptionOnNotFound
- true to throw exception if method not foundGrouperRestInvalidRequest
- if there is a problem