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 BranchInfo
apply(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:RestCollectionCreateView
Process the view operation by creating the resource.- Specified by:
apply
in 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
BinaryResult
to avoid automatic conversion to JSON. - Throws:
BadRequestException
AuthException
ResourceConflictException
IOException
PermissionBackendException
NoSuchProjectException
-
-