All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class HTML.AltProxyUrl

java.lang.Object
   |
   +----HTML.AltProxyUrl

public class AltProxyUrl
extends Object
This class is a URL that allows the user to set up a proxy server for retrieving URLs. If this server is set and it is different than the host of the requested URL, then the request to fetch the URL will be made to the proxy server. Otherwise, the fetch will be made directly. This is mainly intended so that an applet can use a proxy server on the remote host to load URLs from other servers.


Constructor Index

 o AltProxyUrl(String)
 o AltProxyUrl(String, String, int, String)
 o AltProxyUrl(String, String, String)
 o AltProxyUrl(URL, String)

Method Index

 o openStream()
 o setWebProxy(String, int)

Constructors

 o AltProxyUrl
 public AltProxyUrl(String protocol,
                    String host,
                    int port,
                    String file) throws MalformedURLException
 o AltProxyUrl
 public AltProxyUrl(String protocol,
                    String host,
                    String file) throws MalformedURLException
 o AltProxyUrl
 public AltProxyUrl(String spec) throws MalformedURLException
 o AltProxyUrl
 public AltProxyUrl(URL context,
                    String spec) throws MalformedURLException

Methods

 o setWebProxy
 public static void setWebProxy(String proxyHost,
                                int proxyPort)
 o openStream
 public InputStream openStream() throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index