Class ProxyInfo
java.lang.Object
jodd.http.ProxyInfo
Proxy information.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final intprivate final ProxyInfo.ProxyTypeprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionProxyInfo(ProxyInfo.ProxyType proxyType, String proxyHost, int proxyPort, String proxyUser, String proxyPassword) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyInfoCreates directProxy.Returns proxy address.Returns proxy password ornull.intReturns proxy port.Returns proxy type.Returns proxy user name ornullif no authentication required.static ProxyInfoCreates HTTP proxy.static ProxyInfosocks4Proxy(String proxyAddress, int proxyPort, String proxyUser) Creates SOCKS4 proxy.static ProxyInfosocks5Proxy(String proxyAddress, int proxyPort, String proxyUser, String proxyPassword) Creates SOCKS5 proxy.
-
Field Details
-
proxyAddress
-
proxyPort
private final int proxyPort -
proxyUsername
-
proxyPassword
-
proxyType
-
-
Constructor Details
-
ProxyInfo
public ProxyInfo(ProxyInfo.ProxyType proxyType, String proxyHost, int proxyPort, String proxyUser, String proxyPassword)
-
-
Method Details
-
directProxy
Creates directProxy. -
socks4Proxy
-
socks5Proxy
-
httpProxy
-
getProxyType
Returns proxy type. -
getProxyAddress
Returns proxy address. -
getProxyPort
public int getProxyPort()Returns proxy port. -
getProxyUsername
Returns proxy user name ornullif no authentication required. -
getProxyPassword
Returns proxy password ornull.
-