All Packages Class Hierarchy This Package Previous Next Index
Class COM.webconcepts.net.HttpProxyConnection
java.lang.Object
|
+----COM.webconcepts.net.HttpProxyConnection
- public class HttpProxyConnection
- extends Object
An HttpProxyConnection is used by an applet that wants to fetch a URL that is
outside of the local Web server. It relies on an instance of HttpProxyServer running
on a known port (usually 4005) on the server where the applet is hosted.
- See Also:
- HttpProxyServer
-
HttpProxyConnection(String)
- creates a new proxy connection to the name host using the standard port
(usually 4005)
-
HttpProxyConnection(String, int)
-
creates a new proxy connection to the named host using a non-standard port
-
fetch(URL)
- loads a remote URL into a byte array
HttpProxyConnection
public HttpProxyConnection(String proxyHost,
int proxyPort)
- creates a new proxy connection to the named host using a non-standard port
- Parameters:
- proxyHost - the host on which the proxy server is running
- proxuPort - the port on which the proxy server is listening
HttpProxyConnection
public HttpProxyConnection(String proxyHost)
- creates a new proxy connection to the name host using the standard port
(usually 4005)
- Parameters:
- proxyHost - the host on which the proxy server is running
fetch
public byte[] fetch(URL proxyURL) throws Exception
- loads a remote URL into a byte array
- Parameters:
- proxyURL - the URL to load
- Returns:
- a byte array with the remote URL's contents
- Throws: Exception
- if there is a network error when talking to the server
All Packages Class Hierarchy This Package Previous Next Index