Class PutBranch
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.PutBranch
-
- All Implemented Interfaces:
RestModifyView<BranchResource,BranchInput>
,RestView<BranchResource>
public class PutBranch extends Object implements RestModifyView<BranchResource,BranchInput>
-
-
Constructor Summary
Constructors Constructor Description PutBranch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchInfo
apply(BranchResource rsrc, BranchInput input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public BranchInfo apply(BranchResource rsrc, BranchInput input) throws ResourceConflictException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<BranchResource,BranchInput>
- 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:
ResourceConflictException
- the resource state does not permit this view to make the changes at this time.
-
-