Q
- T
- P
- public abstract class AbstractResource<Q,T extends Serializable,P extends net.idea.modbcum.i.processors.IProcessor<Q,org.restlet.representation.Representation>> extends FreeMarkerResource
Modifier and Type | Field and Description |
---|---|
static String |
b64search_param |
static String |
caseSensitive |
static String |
condition |
protected Exception |
error |
static String |
max_hits |
static String |
property |
protected Q |
queryObject |
protected org.restlet.data.Status |
response_status |
static String |
returnProperties |
static String |
search_param |
fmSupport
Constructor and Description |
---|
AbstractResource() |
Modifier and Type | Method and Description |
---|---|
abstract P |
createConvertor(org.restlet.representation.Variant variant) |
protected abstract Q |
createQuery(org.restlet.Context context,
org.restlet.Request request,
org.restlet.Response response) |
protected void |
customizeVariants(org.restlet.data.MediaType[] mimeTypes) |
protected void |
doInit() |
protected org.restlet.representation.Representation |
get(org.restlet.representation.Variant variant) |
protected String |
getParameter(org.restlet.data.Form requestHeaders,
String paramName,
String description)
Calls
#getParameter(Form, String, boolean) with false for the
last argument |
protected String |
getParameter(org.restlet.data.Form requestHeaders,
String paramName,
String description,
boolean mandatory)
Returns parameter value and throwsan exception if value is missing of
mandatory parameter
|
protected org.restlet.representation.Representation |
getRepresentation(org.restlet.representation.Variant variant) |
List<org.restlet.representation.Variant> |
getVariants() |
protected org.restlet.representation.Representation |
post(org.restlet.representation.Representation entity,
org.restlet.representation.Variant variant) |
protected org.restlet.representation.Representation |
processNotFound(net.idea.modbcum.i.exceptions.NotFoundException x,
org.restlet.representation.Variant variant) |
String[] |
URI_to_handle() |
configureTemplateMap, getHTMLByTemplate, getSearchReference, getTemplateName, isHtmlbyTemplate, setHtmlbyTemplate, toRepresentation
cleanedResourceRef, doRelease, getAgent, getPassword, getResourceRef, getToken, getTokenFromCookies, getUserName, setCacheHeaders, setFrameOptions, setTokenCookies, useSecureCookie
delete, delete, describeVariants, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, getInfo, getInfo, getOnContinue, getOnSent, getPreferredVariant, handle, head, head, isAnnotated, isConditional, isExisting, isInRole, isNegotiated, options, options, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setChallengeRequests, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnContinue, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doCatch, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMetadataService, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, release
protected Q queryObject
protected Exception error
protected org.restlet.data.Status response_status
public static final String search_param
public static final String b64search_param
public static final String property
public static final String condition
public static final String caseSensitive
public static final String returnProperties
public static final String max_hits
public String[] URI_to_handle()
protected void doInit() throws org.restlet.resource.ResourceException
doInit
in class ProtectedResource
org.restlet.resource.ResourceException
protected void customizeVariants(org.restlet.data.MediaType[] mimeTypes)
public abstract P createConvertor(org.restlet.representation.Variant variant) throws net.idea.modbcum.i.exceptions.AmbitException, org.restlet.resource.ResourceException
net.idea.modbcum.i.exceptions.AmbitException
org.restlet.resource.ResourceException
protected abstract Q createQuery(org.restlet.Context context, org.restlet.Request request, org.restlet.Response response) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
public List<org.restlet.representation.Variant> getVariants()
getVariants
in class org.restlet.resource.ServerResource
protected org.restlet.representation.Representation get(org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException
get
in class FreeMarkerResource
org.restlet.resource.ResourceException
protected org.restlet.representation.Representation getRepresentation(org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException
getRepresentation
in class FreeMarkerResource
org.restlet.resource.ResourceException
protected org.restlet.representation.Representation processNotFound(net.idea.modbcum.i.exceptions.NotFoundException x, org.restlet.representation.Variant variant) throws Exception
Exception
protected String getParameter(org.restlet.data.Form requestHeaders, String paramName, String description, boolean mandatory) throws org.restlet.resource.ResourceException
requestHeaders
- paramName
- mandatory
- org.restlet.resource.ResourceException
protected String getParameter(org.restlet.data.Form requestHeaders, String paramName, String description) throws org.restlet.resource.ResourceException
#getParameter(Form, String, boolean)
with false for the
last argumentrequestHeaders
- paramName
- org.restlet.resource.ResourceException
protected org.restlet.representation.Representation post(org.restlet.representation.Representation entity, org.restlet.representation.Variant variant) throws org.restlet.resource.ResourceException
post
in class org.restlet.resource.ServerResource
org.restlet.resource.ResourceException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.