com.ning.http.client
Class ProxyServer
java.lang.Object
com.ning.http.client.ProxyServer
public class ProxyServer
- extends Object
Represents a proxy server.
ProxyServer
public ProxyServer(ProxyServer.Protocol protocol,
String host,
int port)
ProxyServer
public ProxyServer(String host,
int port)
getProtocol
public ProxyServer.Protocol getProtocol()
getProtocolAsString
public String getProtocolAsString()
getHost
public String getHost()
getPort
public int getPort()
fromProxy
public static final ProxyServer fromProxy(Proxy proxy)
- Convert from Java java.net.Proxy object.
- Parameters:
proxy
-
- Returns:
- A ProxyServer object or null if the proxy object can not converted.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010. All Rights Reserved.