Class CreateBranch
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.CreateBranch
-
- All Implemented Interfaces:
RestCollectionCreateView<ProjectResource,BranchResource,BranchInput>,RestCollectionView<ProjectResource,BranchResource,BranchInput>,RestView<BranchResource>
public class CreateBranch extends Object implements RestCollectionCreateView<ProjectResource,BranchResource,BranchInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchInfoapply(ProjectResource rsrc, IdString id, BranchInput input)Process the view operation by creating the resource.
-
-
-
Method Detail
-
apply
public BranchInfo apply(ProjectResource rsrc, IdString id, BranchInput input) throws BadRequestException, AuthException, ResourceConflictException, IOException, PermissionBackendException, NoSuchProjectException
Description copied from interface:RestCollectionCreateViewProcess the view operation by creating the resource.- Specified by:
applyin interfaceRestCollectionCreateView<ProjectResource,BranchResource,BranchInput>- Parameters:
rsrc- parent resource of the resource that should be createdinput- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
BadRequestExceptionAuthExceptionResourceConflictExceptionIOExceptionPermissionBackendExceptionNoSuchProjectException
-
-