/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test; import ftpfs.FTPBeanFileSystemFactory; import java.net.URI; import org.das2.util.filesystem.FileSystem; /** * Seth logs into lanl by logging into his ftp server with papco@stevens.lanl.gov, and it forwards the commands. We need * to support "user@host" for the username. * @author jbf */ public class TestFtpProxy { public static void main( String[] args ) throws Exception { FileSystem fs; String[] ss; //fs= FileSystem.create( new URI( "http://jbf@foo:@sarahandjeremy.net/~jbf/lanl/vap/") ); //ss= fs.listDirectory("/"); //System.err.println(Arrays.asList(ss)); // logger okay FileSystem.registerFileSystemFactory( "ftp", new FTPBeanFileSystemFactory() ); fs= FileSystem.create( new URI( "ftp://jbf@foo:@192.168.0.205/temp/") ); fs= FileSystem.create( new URI( "ftp://jbf@192.168.0.205/temp/") ); fs= FileSystem.create( new URI( "ftp://192.168.0.205/temp/") ); } }