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 / http / Handler.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-07-08  |  719 b   |  26 lines

  1. package sun.net.www.protocol.http;
  2.  
  3. import java.io.IOException;
  4. import java.net.URL;
  5. import java.net.URLConnection;
  6. import java.net.URLStreamHandler;
  7.  
  8. public class Handler extends URLStreamHandler {
  9.    protected String proxy;
  10.    protected int proxyPort;
  11.  
  12.    public Handler() {
  13.       this.proxy = null;
  14.       this.proxyPort = -1;
  15.    }
  16.  
  17.    public Handler(String var1, int var2) {
  18.       this.proxy = var1;
  19.       this.proxyPort = var2;
  20.    }
  21.  
  22.    protected URLConnection openConnection(URL var1) throws IOException {
  23.       return new HttpURLConnection(var1, this);
  24.    }
  25. }
  26.