public class SimpleTaskResource<USERID> extends AbstractResource<Iterator<UUID>,UUID,net.idea.modbcum.i.processors.IProcessor<Iterator<UUID>,org.restlet.representation.Representation>>
UUID
class. AsyncJobResource
If accepted, the status code is 201
and the URI of the task resource in the Location header /task/{id} HTTP/1.1 303 See Other Location: http://example.org/thenewurl
Modifier and Type | Field and Description |
---|---|
protected int |
max |
protected int |
page |
protected long |
pageSize |
static String |
resource |
static String |
resourceID |
static String |
resourceKey |
protected String |
searchStatus |
b64search_param, caseSensitive, condition, error, max_hits, property, queryObject, response_status, returnProperties, search_param
fmSupport
Constructor and Description |
---|
SimpleTaskResource() |
Modifier and Type | Method and Description |
---|---|
net.idea.modbcum.i.processors.IProcessor<Iterator<UUID>,org.restlet.representation.Representation> |
createConvertor(org.restlet.representation.Variant variant) |
protected Iterator<UUID> |
createQuery(org.restlet.Context context,
org.restlet.Request request,
org.restlet.Response response) |
protected void |
doInit() |
protected boolean |
filterTask(net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> task,
int taskNumber) |
int |
getPage() |
long |
getPageSize() |
protected Iterator<UUID> |
getTasks() |
void |
setPage(int page) |
void |
setPageSize(long pageSize) |
protected void |
setPaging(org.restlet.data.Form form) |
customizeVariants, get, getParameter, getParameter, getRepresentation, getVariants, post, processNotFound, 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
public static final String resource
public static final String resourceKey
public static final String resourceID
protected String searchStatus
protected int max
protected int page
protected long pageSize
public int getPage()
public void setPage(int page)
public long getPageSize()
public void setPageSize(long pageSize)
protected void doInit() throws org.restlet.resource.ResourceException
protected boolean filterTask(net.idea.restnet.i.task.ITask<net.idea.restnet.i.task.ITaskResult,USERID> task, int taskNumber)
protected Iterator<UUID> createQuery(org.restlet.Context context, org.restlet.Request request, org.restlet.Response response) throws org.restlet.resource.ResourceException
createQuery
in class AbstractResource<Iterator<UUID>,UUID,net.idea.modbcum.i.processors.IProcessor<Iterator<UUID>,org.restlet.representation.Representation>>
org.restlet.resource.ResourceException
public net.idea.modbcum.i.processors.IProcessor<Iterator<UUID>,org.restlet.representation.Representation> createConvertor(org.restlet.representation.Variant variant) throws net.idea.modbcum.i.exceptions.AmbitException, org.restlet.resource.ResourceException
createConvertor
in class AbstractResource<Iterator<UUID>,UUID,net.idea.modbcum.i.processors.IProcessor<Iterator<UUID>,org.restlet.representation.Representation>>
net.idea.modbcum.i.exceptions.AmbitException
org.restlet.resource.ResourceException
protected void setPaging(org.restlet.data.Form form)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.