home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VPage / Java.bin / CLASSES.ZIP / sun / net / www / protocol / ftp / Handler.class (.txt) < prev   
Encoding:
Java Class File  |  1997-07-08  |  791 b   |  14 lines

  1. package sun.net.www.protocol.ftp;
  2.  
  3. import java.net.URL;
  4. import java.net.URLConnection;
  5. import java.net.URLStreamHandler;
  6. import sun.net.ftp.FtpClient;
  7. import sun.net.www.protocol.http.HttpURLConnection;
  8.  
  9. public class Handler extends URLStreamHandler {
  10.    protected URLConnection openConnection(URL var1) {
  11.       return (URLConnection)(FtpClient.useFtpProxy && FtpClient.ftpProxyHost != null && FtpClient.ftpProxyHost.length() > 0 ? new HttpURLConnection(var1, FtpClient.ftpProxyHost, FtpClient.ftpProxyPort) : new FtpURLConnection(var1));
  12.    }
  13. }
  14.