public abstract class BaseRequest extends Object implements Request
Request.Type| Constructor and Description |
|---|
BaseRequest(javax.ws.rs.core.HttpHeaders headers,
RequestBody body,
javax.ws.rs.core.UriInfo uriInfo,
ResourceInstance resource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAPIVersion()
Obtain the api version of the request.
|
RequestBody |
getBody()
Obtain the request body data.
|
Map<String,TemporalInfo> |
getFields()
Obtain the partial response fields and associated temporal information which were provided
in the query string of the request uri.
|
Map<String,List<String>> |
getHttpHeaders()
Obtain the http headers associated with the request.
|
PageRequest |
getPageRequest()
Obtain the pagination request information.
|
protected PredicateCompiler |
getPredicateCompiler()
Obtain the predicate compiler which is used to compile the query string into
a predicate.
|
Predicate |
getQueryPredicate()
Obtain the query predicate that was built from the user provided predicate fields in the query string.
|
Renderer |
getRenderer()
Obtain the renderer for the request.
|
protected abstract RequestHandler |
getRequestHandler()
Obtain the underlying request handler for the request.
|
ResourceInstance |
getResource()
Obtain the resource definition which corresponds to the resource being operated on by the request.
|
protected ResultPostProcessor |
getResultPostProcessor()
Obtain the result post processor for the request.
|
String |
getURI()
Obtain the URI of this request.
|
Result |
process()
Process the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestTypepublic BaseRequest(javax.ws.rs.core.HttpHeaders headers,
RequestBody body,
javax.ws.rs.core.UriInfo uriInfo,
ResourceInstance resource)
headers - http headersbody - http bodyuriInfo - uri informationresource - associated resource definitionpublic ResourceInstance getResource()
RequestgetResource in interface RequestResourceDefinitionpublic String getURI()
Requestpublic int getAPIVersion()
RequestgetAPIVersion in interface Requestpublic Predicate getQueryPredicate()
RequestgetQueryPredicate in interface Requestpublic Map<String,TemporalInfo> getFields()
Requestpublic Renderer getRenderer()
RequestgetRenderer in interface Requestpublic Map<String,List<String>> getHttpHeaders()
RequestgetHttpHeaders in interface Requestpublic PageRequest getPageRequest()
RequestgetPageRequest in interface Requestpublic RequestBody getBody()
Requestprotected ResultPostProcessor getResultPostProcessor()
protected PredicateCompiler getPredicateCompiler()
protected abstract RequestHandler getRequestHandler()
Copyright © 2016. All rights reserved.