Package org.globusonline.transfer

Examples of org.globusonline.transfer.JSONTransferAPIClient


        String destFilePath = "~/tmp.log.copy";

        // String destEndpoint = "heshan#my_testEndpoint";
        // String sourceFilePath = "~/var_tables.mod";
        try {
            JSONTransferAPIClient c = new JSONTransferAPIClient(username, caFile, certFile, keyFile, baseUrl);
            System.out.println("base url: " + c.getBaseUrl());
            GridFTPFileTransferClient e = new GridFTPFileTransferClient(c);
            e.transfer(sourceEndpoint, sourceFilePath, destEndpoint, destFilePath);
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here


        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);
View Full Code Here

        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.getErrorWindow().error("Key Management Error.", e);
            return;
        } catch (NoSuchAlgorithmException e) {
            this.engine.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.getErrorWindow().error("IO Error.", e1);
View Full Code Here

TOP

Related Classes of org.globusonline.transfer.JSONTransferAPIClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.