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 BranchInfo
apply(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:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<BranchResource>
- Parameters:
rsrc
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
ResourceNotFoundException
IOException
PermissionBackendException
-
-