|
||||||||||
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.telemetry.service.resource.telemetry.TelemetryResource
org.hackystat.telemetry.service.resource.cache.CacheResource
public class CacheResource
This resource responds to requests of form: DELETE {host}/cache/{user} DELETE {host}/cache/{user}/{project} The DELETE requests clear the caches for the user, dpdtype, or individual entry. The UriUser must always be the same as the authenticated user.
Field Summary |
---|
Fields inherited from class org.hackystat.telemetry.service.resource.telemetry.TelemetryResource |
---|
authUser, badAuth, chart, dpdHost, end, granularity, params, projectName, requestStartTime, sensorBaseHost, start, telemetryServer, uriUser |
Constructor Summary | |
---|---|
CacheResource(org.restlet.Context context,
org.restlet.data.Request request,
org.restlet.data.Response response)
The standard constructor. |
Method Summary | |
---|---|
boolean |
allowDelete()
Indicate the DELETE method is supported. |
boolean |
allowGet()
Indicate that GET is not supported. |
void |
removeRepresentations()
Responds to DELETE requests for clearing the cache. |
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.telemetry.service.resource.telemetry.TelemetryResource |
---|
getDailyProjectDataClient, getSensorBaseClient, getStringRepresentation, getTelemetryDefinitions, logRequest, logRequest, setStatusError, setStatusError, setStatusInternalError |
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 object.response
- The response object.Method Detail |
---|
public boolean allowGet()
allowGet
in class org.restlet.resource.Resource
public org.restlet.resource.Representation represent(org.restlet.resource.Variant variant)
represent
in class TelemetryResource
variant
- Ignored.
public boolean allowDelete()
allowDelete
in class org.restlet.resource.Resource
public void removeRepresentations()
removeRepresentations
in class org.restlet.resource.Resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |