@Deprecated public interface IAPIConnector
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
beginRequest(String path,
String contentType)
Deprecated.
Creating stream for writing data
|
InputStream |
endRequest(String path)
Deprecated.
Getting response from request
|
InputStream |
getAttachment(String attachmentKey)
Deprecated.
Read data from the path provided
Note: Caller is responsible for closing the returned stream
|
Reader |
getData()
Deprecated.
Read data from the root of the connection
Note: Caller is responsible for closing the returned stream
|
Reader |
getData(String path)
Deprecated.
Read data from the path provided
Note: Caller is responsible for closing the returned stream
|
Reader |
sendData(String path,
String data)
Deprecated.
Send data to the path
Note: Caller is responsible for closing the returned stream
|
Reader getData() throws ConnectionException
ConnectionException - if any connection problems occurReader getData(String path) throws ConnectionException
path - StringConnectionException - if any connection problems occurInputStream getAttachment(String attachmentKey) throws ConnectionException
attachmentKey - ConnectionExceptionReader sendData(String path, String data) throws ConnectionException
path - - Stringdata - - StringConnectionException - if any connection problems occurOutputStream beginRequest(String path, String contentType) throws ConnectionException
path - path to the data on servercontentType - Content-type of HTTP headerConnectionException - if any connection problems occurInputStream endRequest(String path) throws ConnectionException
path - path to the data on serverConnectionException - if any connection problems occurCopyright © 2021 VersionOne, Inc.. All rights reserved.