Class SetHead
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.SetHead
-
- All Implemented Interfaces:
RestModifyView<ProjectResource,HeadInput>,RestView<ProjectResource>
public class SetHead extends Object implements RestModifyView<ProjectResource,HeadInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(ProjectResource rsrc, HeadInput input)Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public String apply(ProjectResource rsrc, HeadInput input) throws AuthException, ResourceNotFoundException, BadRequestException, UnprocessableEntityException, IOException, PermissionBackendException
Description copied from interface:RestModifyViewProcess the view operation by altering the resource.- Specified by:
applyin interfaceRestModifyView<ProjectResource,HeadInput>- Parameters:
rsrc- resource to modify.input- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResultto 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.ResourceNotFoundExceptionUnprocessableEntityExceptionIOExceptionPermissionBackendException
-
-