Class GetBranch
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.GetBranch
-
- All Implemented Interfaces:
RestReadView<BranchResource>,RestView<BranchResource>
public class GetBranch extends Object implements RestReadView<BranchResource>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchInfoapply(BranchResource rsrc)Process the view operation by reading from the resource.
-
-
-
Method Detail
-
apply
public BranchInfo apply(BranchResource rsrc) throws ResourceNotFoundException, IOException, PermissionBackendException
Description copied from interface:RestReadViewProcess the view operation by reading from the resource.- Specified by:
applyin interfaceRestReadView<BranchResource>- Parameters:
rsrc- resource to read.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
ResourceNotFoundExceptionIOExceptionPermissionBackendException
-
-