public class ProxyHost extends HttpHost
Constructor and Description |
---|
ProxyHost(ProxyHost httpproxy)
Copy constructor for HttpHost
|
ProxyHost(java.lang.String hostname)
Constructor for HttpHost.
|
ProxyHost(java.lang.String hostname,
int port)
Constructor for ProxyHost.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
equals, getHostName, getPort, getProtocol, hashCode, toString, toURI
public ProxyHost(ProxyHost httpproxy)
httpproxy
- the HTTP host to copy details frompublic ProxyHost(java.lang.String hostname, int port)
hostname
- the hostname (IP or DNS name). Can be null
.port
- the port. Value -1
can be used to set default protocol portpublic ProxyHost(java.lang.String hostname)
hostname
- the hostname (IP or DNS name). Can be null
.Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.