Package org.ogce.gfac.utils

Examples of org.ogce.gfac.utils.ContactInfo


public class GridFtp {
  public void makeDir(URI destURI, GSSCredential gssCred) throws GfacException {
    GridFTPClient destClient = null;
    try {
      ContactInfo destHost = new ContactInfo(destURI.getHost(), destURI.getPort());
      String destPath = destURI.getPath();
      System.out.println(("Creating Directory = " + destHost + "=" + destPath));

      destClient = new GridFTPClient(destHost.hostName, destHost.port);
View Full Code Here


  public String readRemoteFile(URI destURI, GSSCredential gsCredential, File localFile) throws GfacException {
    GridFTPClient ftpClient = null;

    try {
      ContactInfo contactInfo = new ContactInfo(destURI.getHost(), destURI.getPort());
      String remoteFile = destURI.getPath();

      ftpClient = new GridFTPClient(contactInfo.hostName, contactInfo.port);
      ftpClient.setAuthorization(new HostAuthorization("host"));
      ftpClient.authenticate(gsCredential);
View Full Code Here

TOP

Related Classes of org.ogce.gfac.utils.ContactInfo

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.