Package com.google.gerrit.server.project
Class SetHead
- java.lang.Object
-
- com.google.gerrit.server.project.SetHead
-
- All Implemented Interfaces:
RestModifyView<ProjectResource,SetHead.Input>
,RestView<ProjectResource>
public class SetHead extends Object implements RestModifyView<ProjectResource,SetHead.Input>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetHead.Input
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(ProjectResource rsrc, SetHead.Input input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public String apply(ProjectResource rsrc, SetHead.Input input) throws AuthException, ResourceNotFoundException, BadRequestException, UnprocessableEntityException, IOException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<ProjectResource,SetHead.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.ResourceNotFoundException
UnprocessableEntityException
IOException
-
-