Class ProxyHost
java.lang.Object
org.apache.commons.httpclient.HttpHost
org.apache.commons.httpclient.ProxyHost
- All Implemented Interfaces:
Cloneable
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
- Author:
- Michael Becke, Mike Bowler, Oleg Kalnichevski, Laura Werner
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class HttpHost
equals, getHostName, getPort, getProtocol, hashCode, toString, toURI
-
Constructor Details
-
ProxyHost
Copy constructor for HttpHost- Parameters:
httpproxy- the HTTP host to copy details from
-
ProxyHost
Constructor for ProxyHost.- Parameters:
hostname- the hostname (IP or DNS name). Can benull.port- the port. Value-1can be used to set default protocol port
-
ProxyHost
Constructor for HttpHost.- Parameters:
hostname- the hostname (IP or DNS name). Can benull.
-
-
Method Details
-
clone
- Overrides:
clonein classHttpHost- Throws:
CloneNotSupportedException- See Also:
-