home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 14 / CDACTUAL.iso / ie4 / IE4 / JAVI386.CAB / classr.exe / sun / net / www / protocol / http / Handler.class (.txt) next >
Encoding:
Java Class File  |  1997-01-31  |  684 b   |  25 lines

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