Class CacheResource
java.lang.Object
io.goobi.viewer.api.rest.v1.cache.CacheResource
-
Constructor Summary
-
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
-thumbs
-pdf
-- 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
-content
-thumbs
-pdf
-- Returns:
IResponseMessage
- Throws:
IOException
-