public class PostCaches extends java.lang.Object implements RestModifyView<ConfigResource,PostCaches.Input>
Modifier and Type | Class and Description |
---|---|
static class |
PostCaches.Input |
static class |
PostCaches.Operation |
Constructor and Description |
---|
PostCaches(DynamicMap<com.google.common.cache.Cache<?,?>> cacheMap,
FlushCache flushCache) |
Modifier and Type | Method and Description |
---|---|
Response<java.lang.String> |
apply(ConfigResource rsrc,
PostCaches.Input input)
Process the view operation by altering the resource.
|
@Inject public PostCaches(DynamicMap<com.google.common.cache.Cache<?,?>> cacheMap, FlushCache flushCache)
public Response<java.lang.String> apply(ConfigResource rsrc, PostCaches.Input input) throws AuthException, BadRequestException, UnprocessableEntityException
RestModifyView
apply
in interface RestModifyView<ConfigResource,PostCaches.Input>
rsrc
- resource to modify.input
- input after parsing from request.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.UnprocessableEntityException