public class Proxy extends Object
| Constructor and Description |
|---|
Proxy()
Instantiates a new proxy.
|
Proxy(Credentials credentials,
Authenticator authenticator)
Instantiates a new proxy.
|
Proxy(InetSocketAddress proxyAddress)
Instantiates a new proxy.
|
Proxy(InetSocketAddress proxyAddress,
Credentials credentials,
Authenticator authenticator)
Instantiates a new proxy.
|
Proxy(InetSocketAddress proxyAddress,
String username,
String password)
Instantiates a new proxy.
|
Proxy(String username,
String password)
Instantiates a new proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected InetSocketAddress |
findProxy(InetSocketAddress endpoint)
Find proxy.
|
ProxyHandshake |
getProxyHandshake(WebSocket ws)
Gets the proxy handshake.
|
public Proxy()
public Proxy(InetSocketAddress proxyAddress)
proxyAddress - the proxy addresspublic Proxy(String username, String password)
username - the usernamepassword - the passwordpublic Proxy(Credentials credentials, Authenticator authenticator)
credentials - the credentialsauthenticator - the authenticatorpublic Proxy(InetSocketAddress proxyAddress, String username, String password)
proxyAddress - the proxy addressusername - the usernamepassword - the passwordpublic Proxy(InetSocketAddress proxyAddress, Credentials credentials, Authenticator authenticator)
proxyAddress - the proxy addresscredentials - the credentialsauthenticator - the authenticatorprotected InetSocketAddress findProxy(InetSocketAddress endpoint) throws WebSocketException
endpoint - the endpointWebSocketException - the web socket exceptionpublic ProxyHandshake getProxyHandshake(WebSocket ws) throws WebSocketException
ws - the wsWebSocketException - the web socket exceptionCopyright © 2021. All rights reserved.