Package com.lightstreamer.client
Class Proxy
- java.lang.Object
-
- com.lightstreamer.client.Proxy
-
public class Proxy extends java.lang.Object
Simple class representing a Proxy configuration.
An instance of this class can be used throughConnectionOptions.setProxy(Proxy)
to instruct a LightstreamerClient to connect to the Lightstreamer Server passing through a proxy.
-
-
Constructor Summary
Constructors Constructor Description Proxy(java.lang.String type, java.lang.String host, int port)
This constructor will callProxy(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 callProxy(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 information required by theLightstreamerClient
to connect to a Lightstreamer server passing through a proxy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Proxy
public Proxy(@Nonnull java.lang.String type, @Nonnull java.lang.String host, int port)
This constructor will callProxy(String, String, int, String, String)
specifying null user and null password.- Parameters:
type
- the proxy typehost
- the proxy hostport
- the proxy port
-
Proxy
public Proxy(@Nonnull java.lang.String type, @Nonnull java.lang.String host, int port, @Nullable java.lang.String user)
This constructor will callProxy(String, String, int, String, String)
specifying a null null password.- Parameters:
type
- the proxy typehost
- the proxy hostport
- the proxy portuser
- the user name to be used to validate against the proxy
-
Proxy
public Proxy(@Nonnull java.lang.String type, @Nonnull java.lang.String host, int port, @Nullable java.lang.String user, @Nullable java.lang.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 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
-
-