public class CheckMergeability extends Object implements RestReadView<BranchResource>
Modifier and Type | Method and Description |
---|---|
MergeableInfo |
apply(BranchResource resource)
Process the view operation by reading from the resource.
|
void |
setSource(String source) |
void |
setStrategy(String strategy) |
public void setSource(String source)
public void setStrategy(String strategy)
public MergeableInfo apply(BranchResource resource) throws IOException, BadRequestException, ResourceNotFoundException
RestReadView
apply
in interface RestReadView<BranchResource>
resource
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.IOException
ResourceNotFoundException