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 SummaryConstructorsConstructorDescriptionThis 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 theLightstreamerClientto connect to a Lightstreamer server passing through a proxy.
- 
Method Summary
- 
Constructor Details- 
ProxyThis 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 host
- port- the proxy port
 
- 
ProxyThis 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 host
- port- the proxy port
- user- the user name to be used to validate against the proxy
 
- 
Proxypublic 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 theLightstreamerClientto connect to a Lightstreamer server passing through a proxy.
 Once created the Proxy instance has to be passed to theLightstreamerClient.connectionOptionsinstance using theConnectionOptions.setProxy(Proxy)method.
 Note: user and password are ignored. If authentication is required by the proxy in use it is necessary to replace the default javaAuthenticatorwith a custom one containing the necessary logic to authenticate the user against the proxy.- Parameters:
- type- the proxy type. Supported values are HTTP, SOCKS4 and SOCKS5.
- host- the proxy host
- port- the proxy port
- user- the user name to be used to validate against the proxy
- password- the password to be used to validate against the proxy
 
 
- 
- 
Method Details