public class GenericServerResource<T> extends SkysailServerResource2<T>
Uniform class and its main Restlet subclass
where a single instance can handle several calls concurrently, one instance of ServerResource is created for
each call handled and accessed by only one thread at a time.| Constructor and Description |
|---|
GenericServerResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildGrid() |
protected Integer |
getCurrentPage() |
protected de.twenty11.skysail.common.responses.Response<T> |
getEntities(T data) |
protected de.twenty11.skysail.common.responses.Response<T> |
getEntity(T singleResult) |
protected Integer |
getPageSize() |
int |
getTotalResults() |
void |
setCurrentPage(Integer currentPage) |
void |
setPageSize(Integer pageSize) |
protected void |
setTotalResults(int length) |
describe, describe, describe, describe, describe, describe, describeDelete, describeGet, describeMethod, describeOptions, describeParameters, describePost, describePut, determineValue, getDescription, getMessage, getName, getParent, getResourcePath, getSkysailData, options, setAutoDescribing, setDescription, setLocationRef, setLocationRef, setMessage, setName, setSkysailDataabort, 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, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensionsdoError, doInit, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, 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, toStringpublic void buildGrid()
protected Integer getPageSize()
public void setPageSize(Integer pageSize)
protected Integer getCurrentPage()
public void setCurrentPage(Integer currentPage)
protected void setTotalResults(int length)
public int getTotalResults()
Copyright © 2011-2013. All Rights Reserved.