public abstract class QueryExecutorResourceBase
extends org.restlet.resource.ServerResource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_AGGREGATION_PARAM |
static String |
DEFAULT_MULTIVALUE_PARAM |
static String |
ERROR_STRATEGY_PARAM |
static String |
FORMAT_PARAM |
static String |
PROPERTY_AGGREGATION_PARAM |
static String |
PROPERTY_MULTIVALUE_PARAM |
Constructor and Description |
---|
QueryExecutorResourceBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.restlet.representation.Representation |
execute()
Serve the current request.
|
org.restlet.representation.Representation |
executeGet() |
org.restlet.representation.Representation |
executePost(org.restlet.representation.Representation entity) |
protected AggregationSpec |
getAggregationSpec()
Reads parameters given to the output webservice and build an AggregationSpec object according to it.
|
protected QueryResultFormatter |
getFormatter(OutputWSConfig outputWSConfig)
Returns an appropriate formatter of the result.
|
protected String |
getFormValue(String key) |
protected String[] |
getFormValuesArray(String key) |
protected PrefixMapping |
getPrefixMapping()
Returns prefix mapping.
|
protected static QueryExecution |
getQueryExecution()
Returns the singleton instance of
QueryExecution . |
protected org.restlet.data.Reference |
getRequestReference() |
protected Map<String,String> |
getValuesMap() |
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doError, doInit, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toObject, toRepresentation, toString
public static final String DEFAULT_AGGREGATION_PARAM
public static final String DEFAULT_MULTIVALUE_PARAM
public static final String ERROR_STRATEGY_PARAM
public static final String FORMAT_PARAM
public static final String PROPERTY_AGGREGATION_PARAM
public static final String PROPERTY_MULTIVALUE_PARAM
protected static QueryExecution getQueryExecution()
QueryExecution
.protected PrefixMapping getPrefixMapping()
protected org.restlet.data.Reference getRequestReference()
@Get public org.restlet.representation.Representation executeGet()
@Post public org.restlet.representation.Representation executePost(org.restlet.representation.Representation entity)
protected abstract org.restlet.representation.Representation execute() throws QueryExecutionException, ResultEmptyException, TransformerException
QueryExecutionException
- exceptionResultEmptyException
- exceptionTransformerException
- exceptionprotected QueryResultFormatter getFormatter(OutputWSConfig outputWSConfig)
outputWSConfig
- Configuration of the output webservice from the global configuration file.protected AggregationSpec getAggregationSpec()
Copyright © 2013. All Rights Reserved.