Class FlushCache
- java.lang.Object
-
- com.google.gerrit.server.restapi.config.FlushCache
-
- All Implemented Interfaces:
RestModifyView<CacheResource,Input>
,RestView<CacheResource>
public class FlushCache extends Object implements RestModifyView<CacheResource,Input>
-
-
Field Summary
Fields Modifier and Type Field Description static String
WEB_SESSIONS
-
Constructor Summary
Constructors Constructor Description FlushCache(PermissionBackend permissionBackend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<String>
apply(CacheResource rsrc, Input input)
Process the view operation by altering the resource.
-
-
-
Field Detail
-
WEB_SESSIONS
public static final String WEB_SESSIONS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FlushCache
@Inject public FlushCache(PermissionBackend permissionBackend)
-
-
Method Detail
-
apply
public Response<String> apply(CacheResource rsrc, Input input) throws AuthException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<CacheResource,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.PermissionBackendException
-
-