Package com.lightstreamer.client
Class Proxy
java.lang.Object
com.lightstreamer.client.Proxy
Simple class representing a Proxy configuration.
An instance of this class can be used through
An instance of this class can be used through
ConnectionOptions.setProxy(Proxy)
to
instruct a LightstreamerClient to connect to the Lightstreamer Server passing through a proxy.-
Constructor Summary
ConstructorDescriptionThis constructor will callProxy(String, String, int, String, String)
specifying null user and null password.This constructor will callProxy(String, String, int, String, String)
specifying a null null password.Creates a Proxy instance containing all the information required by theLightstreamerClient
to connect to a Lightstreamer server passing through a proxy. -
Method Summary
-
Constructor Details
-
Proxy
This constructor will callProxy(String, String, int, String, String)
specifying null user and null password.- Parameters:
type
- the proxy type. Supported values are HTTP, SOCKS4 and SOCKS5.host
- the proxy hostport
- the proxy port
-
Proxy
This constructor will callProxy(String, String, int, String, String)
specifying a null null password.- Parameters:
type
- the proxy type. Supported values are HTTP, SOCKS4 and SOCKS5.host
- the proxy hostport
- the proxy portuser
- the user name to be used to validate against the proxy
-
Proxy
public Proxy(@Nonnull String type, @Nonnull String host, int port, @Nullable String user, @Nullable String password) Creates a Proxy instance containing all the information required by theLightstreamerClient
to connect to a Lightstreamer server passing through a proxy.
Once created the Proxy instance has to be passed to theLightstreamerClient.connectionOptions
instance using theConnectionOptions.setProxy(Proxy)
method.- Parameters:
type
- the proxy type. Supported values are HTTP, SOCKS4 and SOCKS5.host
- 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
-
-
Method Details