public abstract class RestHelper extends Object
Constructor and Description |
---|
RestHelper() |
Modifier and Type | Method and Description |
---|---|
static org.mvel2.ParserContext |
getMvelParserContext()
Return an instance of
ParserContext to be used for evaluation. |
static Map<String,Object> |
getQueryParameters(javax.ws.rs.core.UriInfo uriInfo)
Return a map containing query parameters from UriInfo instance.
|
static int |
resolveMaxResults(int cParamMax,
int cQueryMax,
int cResourceMax)
Resolve the size of a result set Coherence REST resource will return.
|
public static Map<String,Object> getQueryParameters(javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- UriInfo for invoked resource methodpublic static int resolveMaxResults(int cParamMax, int cQueryMax, int cResourceMax)
cParamMax
- max result set size extracted from URL or -1 if
not submittedcQueryMax
- max result set size configured for direct query
or -1 if not configuredcResourceMax
- max result set size configured for this resource
or -1 if not configuredpublic static org.mvel2.ParserContext getMvelParserContext()
ParserContext
to be used for evaluation.ParserContext
to be used for evaluation