public abstract class BaseRequest extends Object implements Request
Request.Type| Modifier and Type | Field and Description |
|---|---|
static String |
ASC_ORDER_PROPERTY_KEY
Sort order property key.
|
static int |
DEFAULT_PAGE_SIZE
Default page size for pagination request.
|
static String |
PAGE_SIZE_PROPERTY_KEY
Page size property key
|
| 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.
|
String |
getRemoteAddress()
Returns the remote address for the request
|
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.
|
SortRequest |
getSortRequest()
Obtain information to order the results by.
|
String |
getURI()
Obtain the URI of this request.
|
Result |
process()
Process the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestTypepublic static final int DEFAULT_PAGE_SIZE
public static final String PAGE_SIZE_PROPERTY_KEY
public static final String ASC_ORDER_PROPERTY_KEY
public 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()
public SortRequest getSortRequest()
RequestgetSortRequest in interface Requestprotected abstract RequestHandler getRequestHandler()
public String getRemoteAddress()
RequestgetRemoteAddress in interface RequestCopyright © 2022 Apache Software Foundation. All rights reserved.