Package com.google.gerrit.server.config
Class PostCaches
- java.lang.Object
-
- com.google.gerrit.server.config.PostCaches
-
- All Implemented Interfaces:
RestModifyView<ConfigResource,PostCaches.Input>
,RestView<ConfigResource>
public class PostCaches extends Object implements RestModifyView<ConfigResource,PostCaches.Input>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PostCaches.Input
static class
PostCaches.Operation
-
Constructor Summary
Constructors Constructor Description PostCaches(DynamicMap<com.google.common.cache.Cache<?,?>> cacheMap, FlushCache flushCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<String>
apply(ConfigResource rsrc, PostCaches.Input input)
Process the view operation by altering the resource.
-
-
-
Constructor Detail
-
PostCaches
@Inject public PostCaches(DynamicMap<com.google.common.cache.Cache<?,?>> cacheMap, FlushCache flushCache)
-
-
Method Detail
-
apply
public Response<String> apply(ConfigResource rsrc, PostCaches.Input input) throws AuthException, BadRequestException, UnprocessableEntityException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<ConfigResource,PostCaches.Input>
- Parameters:
rsrc
- resource to modify.input
- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
AuthException
- the client is not permitted to access this view.BadRequestException
- the request was incorrectly specified and cannot be handled by this view.UnprocessableEntityException
PermissionBackendException
-
-