com.microsoft.tfs.core.httpclient
Class ProxyHost
java.lang.Object
com.microsoft.tfs.core.httpclient.HttpHost
com.microsoft.tfs.core.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
Constructor Summary |
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. |
Method Summary |
java.lang.Object |
clone()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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 be null
.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 be null
.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class HttpHost
- See Also:
Object.clone()
- Throws:
java.lang.CloneNotSupportedException
© 2015 Microsoft. All rights reserved.