public enum VootWsRest extends Enum<VootWsRest>
Enum Constant and Description |
---|
groups
group get requests
|
people
people get requests
|
VOOT_BLANK
blank or other request
|
Modifier and Type | Method and Description |
---|---|
protected int |
getCount(Map<String,String[]> requestParameters)
Utility function to retrieve from the query string the count parameter
(if present).
|
protected int |
getStart(Map<String,String[]> requestParameters)
Utility function to retrieve from the query string the startIndex parameter
(if present).
|
abstract Object |
service(List<String> urlStrings,
VootRestHttpMethod vootRestHttpMethod,
Map<String,String[]> requestParameters)
Handle the incoming request based on HTTP method.
|
static VootWsRest |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VootWsRest |
valueOfIgnoreCase(String string,
boolean exceptionOnNotFound)
Do a case-insensitive matching.
|
static VootWsRest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VootWsRest groups
public static final VootWsRest people
public static final VootWsRest VOOT_BLANK
public static VootWsRest[] values()
for (VootWsRest c : VootWsRest.values()) System.out.println(c);
public static VootWsRest 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 nullprotected int getStart(Map<String,String[]> requestParameters)
protected int getCount(Map<String,String[]> requestParameters)
public abstract Object service(List<String> urlStrings, VootRestHttpMethod vootRestHttpMethod, Map<String,String[]> requestParameters)
urlStrings
- 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"}vootRestHttpMethod
- is the method of the call.requestParameters
- the parameters passed to the request.public static VootWsRest valueOfIgnoreCase(String string, boolean exceptionOnNotFound) throws GrouperRestInvalidRequest
string
- the first commant to VOOT from query string.exceptionOnNotFound
- true if exception should be thrown on not foundRuntimeException
- if empty string passed.GrouperRestInvalidRequest
- if there is a problem.Copyright © 2016 Internet2. All rights reserved.