Enum Class VootWsRest
- All Implemented Interfaces:
Serializable
,Comparable<VootWsRest>
,Constable
All first level resources on a get request.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptiongroup get requestspeople get requestsblank or other request -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Utility function to retrieve from the query string the count parameter (if present).protected int
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
Returns the enum constant of this class 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 class, in the order they are declared.
-
Enum Constant Details
-
groups
group get requests -
people
people get requests -
VOOT_BLANK
blank or other request
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getStart
Utility function to retrieve from the query string the startIndex parameter (if present).- Returns:
- the integer value of the parameter passed.
-
getCount
Utility function to retrieve from the query string the count parameter (if present).- Returns:
- the integer value of the parameter passed.
-
service
public abstract Object service(List<String> urlStrings, VootRestHttpMethod vootRestHttpMethod, Map<String, String[]> requestParameters) Handle the incoming request based on HTTP method.- Parameters:
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.- Returns:
- the result object.
-
valueOfIgnoreCase
public static VootWsRest valueOfIgnoreCase(String string, boolean exceptionOnNotFound) throws GrouperRestInvalidRequest Do a case-insensitive matching.- Parameters:
string
- the first commant to VOOT from query string.exceptionOnNotFound
- true if exception should be thrown on not found- Returns:
- the enum or null or exception if not found.
- Throws:
RuntimeException
- if empty string passed.GrouperRestInvalidRequest
- if there is a problem.
-