String sourceEndpoint = this.sourceEndpointTextField.getText();
String sourceFilePath = this.sourceFilePathTextField.getText();
String destEndpoint = this.destEndpointTextField.getText();
String destFilePath = this.destFilePathTextField.getText();
JSONTransferAPIClient c;
try {
c = new JSONTransferAPIClient(username, caFile, certFile, keyFile, GLOBUSONLINE_BASE_URL_V0_10);
} catch (KeyManagementException e) {
this.engine.getGUI().getErrorWindow().error("Key Management Error.", e);
return;
} catch (NoSuchAlgorithmException e) {
this.engine.getGUI().getErrorWindow().error("No Such Algorithm Error.", e);
return;
}
System.out.println("base url: " + c.getBaseUrl());
GridFTPFileTransferClient e = new GridFTPFileTransferClient(c);
try {
e.transfer(sourceEndpoint, sourceFilePath, destEndpoint, destFilePath);
} catch (IOException e1) {
this.engine.getGUI().getErrorWindow().error("IO Error.", e1);