public class HTTPDataSource extends Object implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource, org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
DataSource fetches records through HTTP protocol with XML
structure.| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPDataSource.CollPaths |
| Constructor and Description |
|---|
HTTPDataSource(String input,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters)
This constructor for
HTTPDataSource |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
boolean |
isClosed() |
org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement |
next() |
org.gcube.datatransformation.datatransformationlibrary.model.ContentType |
nextContentType() |
public HTTPDataSource(String input, org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters) throws XMLStreamException, IOException
HTTPDataSourceinput - The input value of the DataSource.inputParameters - The output parameters of the DataSource.IOException - if source is not availableXMLStreamException - if content is corruptedpublic void close()
close in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandlerDataHandler.close()public boolean isClosed()
isClosed in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandlerTReader has been closed. Otherwise false.DataHandler.isClosed()public org.gcube.datatransformation.datatransformationlibrary.model.ContentType nextContentType()
nextContentType in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSourceContentTypeDataSource.nextContentType()public boolean hasNext()
hasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSourcehasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSourceDataSource.hasNext()Copyright © 2015. All Rights Reserved.