Class SiteCacheRestController


  • @RestController
    @RequestMapping("${crafter.core.rest.base.uri}/site/cache")
    public class SiteCacheRestController
    extends org.craftercms.core.controller.rest.RestControllerBase
    REST controller for operations related to a site's cache.
    Author:
    Alfonso Vásquez
    • Method Detail

      • clear

        @RequestMapping(value="/clear",
                        method=GET)
        public Map<String,​Object> clear​(javax.servlet.http.HttpServletRequest request,
                                              @RequestParam
                                              String token)
                                       throws org.craftercms.commons.exceptions.InvalidManagementTokenException
        Throws:
        org.craftercms.commons.exceptions.InvalidManagementTokenException
      • getStatistics

        @RequestMapping(value="/statistics",
                        method=GET)
        public org.craftercms.core.cache.CacheStatistics getStatistics​(@RequestParam
                                                                       String token)
                                                                throws org.craftercms.commons.exceptions.InvalidManagementTokenException
        Throws:
        org.craftercms.commons.exceptions.InvalidManagementTokenException
      • validateToken

        protected final void validateToken​(String requestToken)
                                    throws org.craftercms.commons.exceptions.InvalidManagementTokenException
        Throws:
        org.craftercms.commons.exceptions.InvalidManagementTokenException