java.lang.Cloneable
public class ProxyHost extends HttpHost
Constructor | Description |
---|---|
ProxyHost(java.lang.String hostname) |
Constructor for HttpHost.
|
ProxyHost(java.lang.String hostname,
int port) |
Constructor for ProxyHost.
|
ProxyHost(ProxyHost httpproxy) |
Copy constructor for HttpHost
|
Modifier and Type | Method | 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 (c) 1999-2005 - Apache Software Foundation