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() |
com.google.common.collect.ImmutableMap<String,String> |
parseContinue(Document doc,
XPath xpath)
Extract all continue variables from response.
|
MWApiServiceCall.ResultWithContinue |
parseResponse(InputStream responseStream,
com.bigdata.bop.IBindingSet binding)
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)
throws Exception
call in interface com.bigdata.rdf.sparql.ast.service.ServiceCall<com.bigdata.bop.IBindingSet>Exceptionpublic Map<String,String> getRequestParams(com.bigdata.bop.IBindingSet binding)
binding - public List<com.bigdata.bop.IVariable<com.bigdata.rdf.internal.IV>> getMockVariables()
getMockVariables in interface com.bigdata.rdf.sparql.ast.service.MockIVReturningServiceCall@Nullable public com.google.common.collect.ImmutableMap<String,String> parseContinue(Document doc, XPath xpath)
doc - public MWApiServiceCall.ResultWithContinue parseResponse(InputStream responseStream, com.bigdata.bop.IBindingSet binding) throws SAXException, IOException, XPathExpressionException
responseStream - Response body as streambinding - Current binding set.SAXException - on errorIOException - on errorXPathExpressionException - on errorCopyright © 2018. All rights reserved.