Class CacheControlResource
java.lang.Object
com.atlassian.greenhopper.web.AbstractResource
com.atlassian.greenhopper.web.configuration.CacheControlResource
@Path("configuration/cache")
@Consumes("application/json")
@Produces("application/json")
public class CacheControlResource
extends AbstractResource
Admin-only REST resource to control GreenHopper caches.
- Author:
- ahennecke
-
Field Summary
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
authenticationContext, log
-
Constructor Summary
ConstructorsConstructorDescriptionCacheControlResource
(GreenHopperCacheManager greenHopperCacheManager, PermissionService permissionService) -
Method Summary
Methods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, checkResult, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response, responseWithoutAccessCheck
-
Constructor Details
-
CacheControlResource
@Inject public CacheControlResource(GreenHopperCacheManager greenHopperCacheManager, PermissionService permissionService)
-
-
Method Details
-
flushAll
@GET @Path("/flushAll") public javax.ws.rs.core.Response flushAll()Flush all caches. Not actually a GET, but it might be darn useful in a tight corner since you can call it from the browser
-