|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.resource.Resource
org.restlet.resource.UniformResource
org.restlet.resource.ServerResource
de.twenty11.skysail.server.restlet.SkysailServerResource2<T>
public abstract class SkysailServerResource2<T>
| Constructor Summary | |
|---|---|
SkysailServerResource2()
|
|
| Method Summary | |
|---|---|
protected org.restlet.representation.Representation |
describe()
|
protected void |
describe(ApplicationInfo applicationInfo)
|
RepresentationInfo |
describe(MethodInfo methodInfo,
RequestInfo request,
Class<?> representationClass,
org.restlet.representation.Variant variant)
|
RepresentationInfo |
describe(MethodInfo methodInfo,
ResponseInfo response,
Class<?> outputClass,
org.restlet.representation.Variant variant)
|
void |
describe(ResourceInfo info)
|
void |
describe(String path,
ResourceInfo info)
|
protected void |
describeDelete(MethodInfo info)
Describes the DELETE method. |
protected void |
describeGet(MethodInfo info)
Describes the GET method. By default, it describes the response with the available variants based on the ServerResource.getVariants() method. |
protected void |
describeMethod(org.restlet.data.Method method,
MethodInfo info)
|
protected void |
describeOptions(MethodInfo info)
Describes the OPTIONS method. By default it describes the response with the available variants based on the #getWadlVariants() method. |
List<ParameterInfo> |
describeParameters()
|
protected void |
describePost(MethodInfo info)
Describes the POST method. |
protected void |
describePut(MethodInfo info)
Describes the PUT method. |
protected String |
determineValue(org.json.JSONObject jsonObject,
String key)
|
String |
getDescription()
|
String |
getMessage()
|
String |
getName()
|
protected String |
getParent()
|
protected String |
getResourcePath()
|
T |
getSkysailData()
|
org.restlet.representation.Representation |
options()
|
void |
setAutoDescribing(boolean autoDescribed)
|
void |
setDescription(String description)
|
void |
setLocationRef(org.restlet.data.Reference locationRef)
Reasoning: not overwriting those two (overloaded) methods gives me a jackson deserialization issue. |
void |
setLocationRef(String locationUri)
|
void |
setMessage(String message)
|
void |
setName(String string)
|
void |
setSkysailData(T skysailData)
|
| Methods inherited from class org.restlet.resource.ServerResource |
|---|
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, 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, updateDimensions |
| Methods inherited from class org.restlet.resource.Resource |
|---|
doError, 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, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SkysailServerResource2()
| Method Detail |
|---|
public void setLocationRef(org.restlet.data.Reference locationRef)
setLocationRef in class org.restlet.resource.ServerResourceServerResource.setLocationRef(org.restlet.data.Reference)public void setLocationRef(String locationUri)
setLocationRef in class org.restlet.resource.ServerResourcepublic void setMessage(String message)
public String getMessage()
protected String getParent()
public T getSkysailData()
public void setSkysailData(T skysailData)
protected String determineValue(org.json.JSONObject jsonObject,
String key)
throws org.json.JSONException
org.json.JSONExceptionpublic void setAutoDescribing(boolean autoDescribed)
public org.restlet.representation.Representation options()
options in class org.restlet.resource.ServerResourceprotected org.restlet.representation.Representation describe()
public void describe(ResourceInfo info)
protected String getResourcePath()
public void describe(String path,
ResourceInfo info)
protected void describe(ApplicationInfo applicationInfo)
public void setDescription(String description)
public void setName(String string)
public String getName()
public String getDescription()
public List<ParameterInfo> describeParameters()
protected void describeMethod(org.restlet.data.Method method,
MethodInfo info)
protected void describeGet(MethodInfo info)
ServerResource.getVariants() method.
Thus in the majority of cases, the method of the super class must be called when overridden.
info - The method description to update.protected void describePost(MethodInfo info)
info - The method description to update.protected void describePut(MethodInfo info)
info - The method description to update.protected void describeDelete(MethodInfo info)
info - The method description to update.protected void describeOptions(MethodInfo info)
#getWadlVariants() method.
info - The method description to update.
public RepresentationInfo describe(MethodInfo methodInfo,
RequestInfo request,
Class<?> representationClass,
org.restlet.representation.Variant variant)
public RepresentationInfo describe(MethodInfo methodInfo,
ResponseInfo response,
Class<?> outputClass,
org.restlet.representation.Variant variant)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||