public class Proxy
extends java.lang.Object
ConnectionOptions.setProxy(Proxy)
to
instruct a LightstreamerClient to connect to the Lightstreamer Server passing through a proxy.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
host |
protected java.lang.String |
password |
protected int |
port |
protected java.lang.String |
type |
protected java.lang.String |
user |
Constructor and Description |
---|
Proxy(java.lang.String type,
java.lang.String host,
int port)
This constructor will call
Proxy(String, String, int, String, String)
specifying null user and null password. |
Proxy(java.lang.String type,
java.lang.String host,
int port,
java.lang.String user)
This constructor will call
Proxy(String, String, int, String, String)
specifying a null null password. |
Proxy(java.lang.String type,
java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
Creates a Proxy instance containing all the informations required by the
LightstreamerClient
to connect to a Lightstreamer server passing through a proxy. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
protected java.lang.String host
protected int port
protected java.lang.String user
protected java.lang.String password
protected java.lang.String type
public Proxy(java.lang.String type, java.lang.String host, int port)
Proxy(String, String, int, String, String)
specifying null user and null password.type
- the proxy typehost
- the proxy hostport
- the proxy portpublic Proxy(java.lang.String type, java.lang.String host, int port, java.lang.String user)
Proxy(String, String, int, String, String)
specifying a null null password.type
- the proxy typehost
- the proxy hostport
- the proxy portuser
- the user name to be used to validate against the proxypublic Proxy(java.lang.String type, java.lang.String host, int port, java.lang.String user, java.lang.String password)
LightstreamerClient
to connect to a Lightstreamer server passing through a proxy. LightstreamerClient.connectionOptions
instance using the ConnectionOptions.setProxy(Proxy)
method.
Authenticator
with a custom one containing
the necessary logic to authenticate the user against the proxy.type
- the proxy typehost
- the proxy hostport
- the proxy portuser
- the user name to be used to validate against the proxypassword
- the password to be used to validate against the proxy