@Controller
@RequestMapping(value="${crafter.core.rest.base.uri}/cache")
public class CacheRestController
extends RestControllerBase
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_ATTRIBUTE_MESSAGE |
static String |
REQUEST_PARAM_CONTEXT_ID |
static String |
REQUEST_PARAM_URL |
static String |
URL_CLEAR_ALL_SCOPES |
static String |
URL_CLEAR_SCOPE |
static String |
URL_ROOT
rest URLs *
|
MESSAGE_MODEL_ATTRIBUTE_NAME, REST_BASE_URI| Constructor and Description |
|---|
CacheRestController() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
clearAllScopes() |
Map<String,String> |
clearScope(String contextId) |
void |
setCacheTemplate(CacheTemplate cacheTemplate) |
void |
setStoreService(ContentStoreService storeService) |
createMessageModel, handleAuthenticationException, handleException, handleForbiddenPathException, handleInvalidContextException, handlePathNotFoundException, handleValidationException, handleValidationRuntimeExceptionpublic static final String URL_ROOT
public static final String URL_CLEAR_ALL_SCOPES
public static final String URL_CLEAR_SCOPE
public static final String REQUEST_PARAM_CONTEXT_ID
public static final String REQUEST_PARAM_URL
public static final String MODEL_ATTRIBUTE_MESSAGE
public void setCacheTemplate(CacheTemplate cacheTemplate)
public void setStoreService(ContentStoreService storeService)
@RequestMapping(value="/clear_all",
method=GET)
@ResponseBody
public Map<String,String> clearAllScopes()
throws CacheException
CacheException@RequestMapping(value="/clear",
method=GET)
@ResponseBody
public Map<String,String> clearScope(@RequestParam(value="contextId")
String contextId)
throws InvalidContextException,
CacheException
Copyright © 2018 CrafterCMS. All rights reserved.