Package com.google.gerrit.server.plugins
Class InstallPlugin
- java.lang.Object
-
- com.google.gerrit.server.plugins.InstallPlugin
-
- All Implemented Interfaces:
RestModifyView<TopLevelResource,InstallPluginInput>,RestView<TopLevelResource>
public class InstallPlugin extends Object implements RestModifyView<TopLevelResource,InstallPluginInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<PluginInfo>apply(TopLevelResource resource, InstallPluginInput input)Process the view operation by altering the resource.InstallPluginsetCreated(boolean created)InstallPluginsetName(String name)
-
-
-
Method Detail
-
setName
public InstallPlugin setName(String name)
-
setCreated
public InstallPlugin setCreated(boolean created)
-
apply
public Response<PluginInfo> apply(TopLevelResource resource, InstallPluginInput input) throws BadRequestException, MethodNotAllowedException, IOException
Description copied from interface:RestModifyViewProcess the view operation by altering the resource.- Specified by:
applyin interfaceRestModifyView<TopLevelResource,InstallPluginInput>- Parameters:
resource- resource to modify.input- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
BadRequestException- the request was incorrectly specified and cannot be handled by this view.MethodNotAllowedExceptionIOException
-
-