|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Handler
org.restlet.resource.Resource
org.hackystat.dailyprojectdata.resource.dailyprojectdata.DailyProjectDataResource
org.hackystat.dailyprojectdata.resource.cache.CacheResource
public class CacheResource
This resource responds to requests of form:
DELETE {host}/cacheThis one clears all entries associated with the authorized user; in other words, all projects that this user owns will have any cached DPDs removed.
It also responds to
DELETE {host}/cache/{user}/{project}This one clears only those cached DPD instances for the specified project owned by that user. In this case, the authorized user must be in the project specified by (project, user).
Field Summary |
---|
Fields inherited from class org.hackystat.dailyprojectdata.resource.dailyprojectdata.DailyProjectDataResource |
---|
authUser, badAuth, project, requestStartTime, server, timestamp, uriString, uriUser |
Constructor Summary | |
---|---|
CacheResource(org.restlet.Context context,
org.restlet.data.Request request,
org.restlet.data.Response response)
The default constructor. |
Method Summary | |
---|---|
boolean |
allowDelete()
Indicate the DELETE method is supported. |
boolean |
allowGet()
Indicate that GET is not supported. |
void |
removeRepresentations()
Returns 200 if cache delete command succeeded. |
org.restlet.resource.Representation |
represent(org.restlet.resource.Variant variant)
Get is not supported, but the method must be implemented. |
Methods inherited from class org.hackystat.dailyprojectdata.resource.dailyprojectdata.DailyProjectDataResource |
---|
getSensorBaseClient, getStringRepresentation, logRequest, logRequest, setStatusError, setStatusError |
Methods inherited from class org.restlet.resource.Resource |
---|
acceptRepresentation, allowPost, allowPut, delete, getPreferredRepresentation, getPreferredVariant, getRepresentation, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, post, put, represent, setAvailable, setModifiable, setNegotiateContent, setReadable, setVariants, storeRepresentation |
Methods inherited from class org.restlet.Handler |
---|
allowHead, allowOptions, generateRef, getAllowedMethods, getApplication, getContext, getLogger, getMatrix, getQuery, getRequest, getResponse, handleHead, handleOptions, setContext, setRequest, setResponse, updateAllowedMethods |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheResource(org.restlet.Context context, org.restlet.data.Request request, org.restlet.data.Response response)
context
- The context.request
- The request.response
- The response.Method Detail |
---|
public void removeRepresentations()
removeRepresentations
in class org.restlet.resource.Resource
public boolean allowDelete()
allowDelete
in class org.restlet.resource.Resource
public boolean allowGet()
allowGet
in class org.restlet.resource.Resource
public org.restlet.resource.Representation represent(org.restlet.resource.Variant variant)
represent
in class DailyProjectDataResource
variant
- Ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |