public class Proxy
extends java.lang.Object
ConnectionOptions.setProxy(Proxy)
to
instruct a LightstreamerClient to connect to the Lightstreamer Server passing through a proxy.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() |
public Proxy(@Nonnull java.lang.String type, @Nonnull 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(@Nonnull java.lang.String type, @Nonnull java.lang.String host, int port, @Nullable 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(@Nonnull java.lang.String type, @Nonnull java.lang.String host, int port, @Nullable java.lang.String user, @Nullable java.lang.String password)
LightstreamerClient
to connect to a Lightstreamer server passing through a proxy. LightstreamerClient.connectionOptions
instance using the ConnectionOptions.setProxy(Proxy)
method.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