public class FileAPIConnector extends Object implements IAPIConnector
| Constructor and Description |
|---|
FileAPIConnector(String fileName,
String prefix)
Create Connector
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
beginRequest(String path,
String contentType)
Operation not supported
|
InputStream |
endRequest(String path)
Operation not supported
|
InputStream |
getAttachment(String attachmentKey)
Read data from the path provided
Note: Caller is responsible for closing the returned stream
|
Reader |
getData()
Read data from the root of the connection
Note: Caller is responsible for closing the returned stream
|
Reader |
getData(String path)
Read data from the path provided
Note: Caller is responsible for closing the returned stream
|
String |
getLastData() |
String |
getLastPath() |
Reader |
sendData(String path,
String data)
Send data to the path
Note: Caller is responsible for closing the returned stream
|
public Reader getData() throws ConnectionException
IAPIConnectorgetData in interface IAPIConnectorConnectionException - if any connection problems occurpublic Reader getData(String path) throws ConnectionException
IAPIConnectorgetData in interface IAPIConnectorpath - StringConnectionException - if any connection problems occurpublic InputStream getAttachment(String attachmentKey) throws ConnectionException
IAPIConnectorgetAttachment in interface IAPIConnectorConnectionExceptionpublic Reader sendData(String path, String data) throws ConnectionException
IAPIConnectorsendData in interface IAPIConnectorpath - - Stringdata - - StringConnectionException - if any connection problems occurpublic String getLastPath()
public String getLastData()
public OutputStream beginRequest(String path, String contentType)
beginRequest in interface IAPIConnectorpath - path to the data on servercontentType - Content-type of HTTP headerpublic InputStream endRequest(String path)
endRequest in interface IAPIConnectorpath - path to the data on serverCopyright © 2021 VersionOne, Inc.. All rights reserved.