Class CheckMergeability
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.CheckMergeability
-
- All Implemented Interfaces:
RestReadView<BranchResource>
,RestView<BranchResource>
public class CheckMergeability extends Object implements RestReadView<BranchResource>
Check the mergeability at current branch for a git object references expression.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergeableInfo
apply(BranchResource resource)
Process the view operation by reading from the resource.void
setSource(String source)
void
setStrategy(String strategy)
-
-
-
Method Detail
-
setSource
public void setSource(String source)
-
setStrategy
public void setStrategy(String strategy)
-
apply
public MergeableInfo apply(BranchResource resource) throws IOException, BadRequestException, ResourceNotFoundException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<BranchResource>
- Parameters:
resource
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
BadRequestException
- the request was incorrectly specified and cannot be handled by this view.IOException
ResourceNotFoundException
-
-