public class CheckMergeability extends java.lang.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(java.lang.String source) |
void |
setStrategy(java.lang.String strategy) |
public void setSource(java.lang.String source)
public void setStrategy(java.lang.String strategy)
public MergeableInfo apply(BranchResource resource) throws java.io.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.java.io.IOException
ResourceNotFoundException