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 / gopher / Handler.class (.txt) < prev   
Encoding:
Java Class File  |  1997-07-08  |  828 b   |  13 lines

  1. package sun.net.www.protocol.gopher;
  2.  
  3. import java.net.URL;
  4. import java.net.URLConnection;
  5. import java.net.URLStreamHandler;
  6. import sun.net.www.protocol.http.HttpURLConnection;
  7.  
  8. public class Handler extends URLStreamHandler {
  9.    public URLConnection openConnection(URL var1) {
  10.       return (URLConnection)(GopherClient.useGopherProxy && GopherClient.gopherProxyHost != null && GopherClient.gopherProxyHost.length() > 0 ? new HttpURLConnection(var1, GopherClient.gopherProxyHost, GopherClient.gopherProxyPort) : new GopherURLConnection(var1));
  11.    }
  12. }
  13.