Class CacheResource
java.lang.Object
io.goobi.viewer.api.rest.v1.cache.CacheResource
REST resource providing cache management endpoints for content and image server caches.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearCache(boolean content, boolean thumbs, boolean pdf) clearCacheForRecord(String pi, boolean content, boolean thumbs, boolean pdf)
-
Constructor Details
-
CacheResource
public CacheResource()
-
-
Method Details
-
getCacheInfo
@GET @Produces("application/json") public String getCacheInfo() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentServerCacheException- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentServerCacheException
-
clearCache
@DELETE @Produces("application/json") public IResponseMessage clearCache(@QueryParam("content") boolean content, @QueryParam("thumbs") boolean thumbs, @QueryParam("pdf") boolean pdf) - Parameters:
content- if true, clears the main image content cachethumbs- if true, clears the thumbnail cachepdf- if true, clears the PDF cache- Returns:
IResponseMessage
-
clearCacheForRecord
@DELETE @Path("/{pi}") @Produces("application/json") public IResponseMessage clearCacheForRecord(@PathParam("pi") String pi, @QueryParam("content") boolean content, @QueryParam("thumbs") boolean thumbs, @QueryParam("pdf") boolean pdf) throws IOException - Parameters:
pi- persistent identifier of the record whose cache entries are deletedcontent- if true, clears the main image content cache for the recordthumbs- if true, clears the thumbnail cache for the recordpdf- if true, clears the PDF cache and download jobs for the record- Returns:
IResponseMessage- Throws:
IOException
-