Package org.apache.commons.httpclient
Class ProxyHost
- java.lang.Object
-
- org.apache.commons.httpclient.HttpHost
-
- org.apache.commons.httpclient.ProxyHost
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ProxyHost extends HttpHost
Holds all of the variables needed to describe an HTTP connection to a proxy. Proxy hosts always use plain HTTP connection when communicating with clients.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
-
Methods inherited from class org.apache.commons.httpclient.HttpHost
equals, getHostName, getPort, getProtocol, hashCode, toString, toURI
-
-
-
-
Constructor Detail
-
ProxyHost
public ProxyHost(ProxyHost httpproxy)
Copy constructor for HttpHost- Parameters:
httpproxy
- the HTTP host to copy details from
-
ProxyHost
public ProxyHost(java.lang.String hostname, int port)
Constructor for ProxyHost.- Parameters:
hostname
- the hostname (IP or DNS name). Can benull
.port
- the port. Value-1
can be used to set default protocol port
-
ProxyHost
public ProxyHost(java.lang.String hostname)
Constructor for HttpHost.- Parameters:
hostname
- the hostname (IP or DNS name). Can benull
.
-
-