public class MWApiServiceCall extends Object implements com.bigdata.rdf.sparql.ast.service.MockIVReturningServiceCall, com.bigdata.rdf.sparql.ast.service.BigdataServiceCall
| Modifier and Type | Class and Description |
|---|---|
static class |
MWApiServiceCall.ResultWithContinue |
| Modifier and Type | Method and Description |
|---|---|
cutthecrap.utils.striterators.ICloseableIterator<com.bigdata.bop.IBindingSet> |
call(com.bigdata.bop.IBindingSet[] bindingSets) |
List<com.bigdata.bop.IVariable<com.bigdata.rdf.internal.IV>> |
getMockVariables() |
Map<String,String> |
getRequestParams(com.bigdata.bop.IBindingSet binding)
Get parameter string from binding.
|
com.bigdata.rdf.sparql.ast.service.IServiceOptions |
getServiceOptions() |
MWApiServiceCall.ResultWithContinue |
parseResponse(InputStream responseStream,
com.bigdata.bop.IBindingSet binding,
int recordsCount)
Parse XML response from WM API.
|
public com.bigdata.rdf.sparql.ast.service.IServiceOptions getServiceOptions()
getServiceOptions in interface com.bigdata.rdf.sparql.ast.service.ServiceCall<com.bigdata.bop.IBindingSet>public cutthecrap.utils.striterators.ICloseableIterator<com.bigdata.bop.IBindingSet> call(com.bigdata.bop.IBindingSet[] bindingSets)
call in interface com.bigdata.rdf.sparql.ast.service.ServiceCall<com.bigdata.bop.IBindingSet>public Map<String,String> getRequestParams(com.bigdata.bop.IBindingSet binding)
public List<com.bigdata.bop.IVariable<com.bigdata.rdf.internal.IV>> getMockVariables()
getMockVariables in interface com.bigdata.rdf.sparql.ast.service.MockIVReturningServiceCallpublic MWApiServiceCall.ResultWithContinue parseResponse(InputStream responseStream, com.bigdata.bop.IBindingSet binding, int recordsCount) throws SAXException, IOException, XPathExpressionException
responseStream - Response body as streambinding - Current binding set.recordsCount - Count of records processed up to this batchSAXException - on errorIOException - on errorXPathExpressionException - on errorCopyright © 2019. All rights reserved.