Package org.jivesoftware.smack.proxy
Class ProxyInfo
- java.lang.Object
-
- org.jivesoftware.smack.proxy.ProxyInfo
-
public class ProxyInfo extends java.lang.Object
Class which stores proxy information such as proxy type, host, port, authentication etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProxyInfo.ProxyType
-
Constructor Summary
Constructors Constructor Description ProxyInfo(ProxyInfo.ProxyType pType, java.lang.String pHost, int pPort, java.lang.String pUser, java.lang.String pPass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProxyInfo
forHttpProxy(java.lang.String pHost, int pPort, java.lang.String pUser, java.lang.String pPass)
static ProxyInfo
forSocks4Proxy(java.lang.String pHost, int pPort, java.lang.String pUser, java.lang.String pPass)
static ProxyInfo
forSocks5Proxy(java.lang.String pHost, int pPort, java.lang.String pUser, java.lang.String pPass)
java.net.Proxy.Type
getJavaProxyType()
java.lang.String
getProxyAddress()
java.lang.String
getProxyPassword()
int
getProxyPort()
ProxySocketConnection
getProxySocketConnection()
ProxyInfo.ProxyType
getProxyType()
java.lang.String
getProxyUsername()
java.net.Proxy
toJavaProxy()
-
-
-
Constructor Detail
-
ProxyInfo
public ProxyInfo(ProxyInfo.ProxyType pType, java.lang.String pHost, int pPort, java.lang.String pUser, java.lang.String pPass)
-
-
Method Detail
-
forHttpProxy
public static ProxyInfo forHttpProxy(java.lang.String pHost, int pPort, java.lang.String pUser, java.lang.String pPass)
-
forSocks4Proxy
public static ProxyInfo forSocks4Proxy(java.lang.String pHost, int pPort, java.lang.String pUser, java.lang.String pPass)
-
forSocks5Proxy
public static ProxyInfo forSocks5Proxy(java.lang.String pHost, int pPort, java.lang.String pUser, java.lang.String pPass)
-
getJavaProxyType
public java.net.Proxy.Type getJavaProxyType()
-
getProxyType
public ProxyInfo.ProxyType getProxyType()
-
getProxyAddress
public java.lang.String getProxyAddress()
-
getProxyPort
public int getProxyPort()
-
getProxyUsername
public java.lang.String getProxyUsername()
-
getProxyPassword
public java.lang.String getProxyPassword()
-
getProxySocketConnection
public ProxySocketConnection getProxySocketConnection()
-
toJavaProxy
public java.net.Proxy toJavaProxy()
-
-