com.atlassian.greenhopper.web.configuration
Class CacheControlResource

java.lang.Object
  extended by com.atlassian.greenhopper.web.AbstractResource
      extended by com.atlassian.greenhopper.web.configuration.CacheControlResource

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
HTTP_HEADER_GREENHOPPER_GADGET, log
 
Constructor Summary
CacheControlResource(GreenHopperCacheManager greenHopperCacheManager, com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, PermissionService permissionService)
           
 
Method Summary
 javax.ws.rs.core.Response flushAll()
          Flush all caches.
 
Methods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, createErrorResponse, createFromServiceOutcome, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response, wireAuthenticationContext, wireI18nFactoryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheControlResource

public CacheControlResource(GreenHopperCacheManager greenHopperCacheManager,
                            com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext,
                            PermissionService permissionService)
Method Detail

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



Copyright © 2007-2014 Atlassian. All Rights Reserved.