public class ClientTransportImpl extends Object implements ClientTransport
| Constructor and Description |
|---|
ClientTransportImpl(FormAuthentication formAuthentication,
String host,
String protocol)
Constructor.
|
ClientTransportImpl(String login,
String password,
String host,
String protocol)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BackupAgentResponse |
executeGET(String sURL)
Execute assigned sURL using current transport and return result as byte array.
|
BackupAgentResponse |
executePOST(String sURL,
String postData)
Execute assigned sURL using current transport and return result as byte array.
|
public ClientTransportImpl(String login, String password, String host, String protocol)
login - Login string.password - Password string.host - host string.public ClientTransportImpl(FormAuthentication formAuthentication, String host, String protocol)
formAuthentication - form authentication parameters.host - host string.protocol - host string.public BackupAgentResponse executePOST(String sURL, String postData) throws IOException, BackupExecuteException
executePOST in interface ClientTransportsURL - String form of URL to execute.postData - data for post request.IOException - any transport exception.BackupExecuteException - other internal exception.public BackupAgentResponse executeGET(String sURL) throws IOException, BackupExecuteException
executeGET in interface ClientTransportsURL - String form of URL to execute, GET method.IOException - any transport exception.BackupExecuteException - other internal exception.Copyright © 2016 eXo Platform SAS. All Rights Reserved.