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 MergeableInfoapply(BranchResource resource)Process the view operation by reading from the resource.voidsetSource(String source)voidsetStrategy(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:RestReadViewProcess the view operation by reading from the resource.- Specified by:
applyin interfaceRestReadView<BranchResource>- Parameters:
resource- resource to read.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
BadRequestException- the request was incorrectly specified and cannot be handled by this view.IOExceptionResourceNotFoundException
-
-