public abstract class IterablePagingProvider<C,T> extends Object implements org.mule.runtime.extension.api.runtime.streaming.PagingProvider<C,T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bodyFieldsOnly |
protected int |
limit |
protected Integer |
pageSize |
protected boolean |
returnSearchColumns |
| Modifier | Constructor and Description |
|---|---|
protected |
IterablePagingProvider(NetSuiteSoapConfig config,
String xPathBaseElement,
int pageSize,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(NetSuiteSoapConnection netSuiteSoapConnection) |
protected void |
extractResultFields(Document resultDocument) |
NetSuiteSoapConfig |
getConfig() |
protected abstract org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getFirstPage(NetSuiteSoapConnection connection) |
protected abstract org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> |
getNextPage(NetSuiteSoapConnection connection) |
List<org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> |
getPage(NetSuiteSoapConnection connection)
TODO: we need to improve the transformToInputStream method for use Sax or Stax
|
Optional<Integer> |
getTotalResults(NetSuiteSoapConnection connection) |
protected abstract String |
getXPathForResultNodeList() |
protected String |
getXPathPageIndexExpression() |
protected String |
getXPathPageSizeExpression() |
protected String |
getXPathStatusExpression() |
protected String |
getXPathTotalPagesExpression() |
protected String |
getXPathTotalRecordsExpression() |
protected boolean |
isStartPageIndex() |
Iterator<T> |
iterator(Supplier<C> connectionSupplier)
TODO: remove, this is only usefull for sources for fromNow
|
protected final int limit
protected boolean bodyFieldsOnly
protected boolean returnSearchColumns
protected Integer pageSize
protected IterablePagingProvider(NetSuiteSoapConfig config, String xPathBaseElement, int pageSize, int limit)
protected abstract org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getNextPage(NetSuiteSoapConnection connection) throws IOException, TransformerException, SAXException, ParserConfigurationException
protected abstract org.mule.runtime.extension.api.runtime.operation.Result<InputStream,NetsuiteSoapAttributes> getFirstPage(NetSuiteSoapConnection connection) throws IOException, ParserConfigurationException, SAXException, TransformerException
public Iterator<T> iterator(Supplier<C> connectionSupplier)
connectionSupplier - The connection supplier to usepublic List<org.mule.runtime.extension.api.runtime.operation.Result<String,NetsuiteSoapAttributes>> getPage(NetSuiteSoapConnection connection)
connection - The connection to useprotected boolean isStartPageIndex()
protected abstract String getXPathForResultNodeList()
public Optional<Integer> getTotalResults(NetSuiteSoapConnection connection)
protected void extractResultFields(Document resultDocument) throws XPathExpressionException
XPathExpressionExceptionpublic void close(NetSuiteSoapConnection netSuiteSoapConnection)
protected String getXPathStatusExpression()
protected String getXPathPageIndexExpression()
protected String getXPathPageSizeExpression()
protected String getXPathTotalPagesExpression()
protected String getXPathTotalRecordsExpression()
public NetSuiteSoapConfig getConfig()
Copyright © 2025 MuleSoft, Inc.. All rights reserved.