public class ConnectionDetails
extends java.lang.Object
LightstreamerClient
as LightstreamerClient.connectionDetails
LightstreamerClient
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdapterSet()
Inquiry method that gets the name of the Adapter Set (which defines the Metadata Adapter and one or several
Data Adapters) mounted on Lightstreamer Server that supply all the items used in this application.
|
java.lang.String |
getClientIp()
Inquiry method that gets the IP address of this client as seen by the Server which is serving
the current session as the client remote address (note that it may not correspond to the client host;
for instance it may refer to an intermediate proxy).
|
java.lang.String |
getServerAddress()
Inquiry method that gets the configured address of Lightstreamer Server.
|
java.lang.String |
getServerInstanceAddress()
Inquiry method that gets the server address to be used to issue all requests related to the current session.
|
java.lang.String |
getServerSocketName()
Inquiry method that gets the instance name of the Server which is serving the current session.
|
java.lang.String |
getSessionId()
Inquiry method that gets the ID associated by the server to this client session.
|
java.lang.String |
getUser()
Inquiry method that gets the username to be used for the authentication on Lightstreamer Server when
initiating the session.
|
void |
setAdapterSet(java.lang.String adapterSet)
Setter method that sets the name of the Adapter Set mounted on Lightstreamer Server to be used to handle
all requests in the session.
|
void |
setPassword(java.lang.String password)
Setter method that sets the password to be used for the authentication on Lightstreamer Server when initiating
the session.
|
void |
setServerAddress(java.lang.String serverAddress)
Setter method that sets the address of Lightstreamer Server.
|
void |
setUser(java.lang.String user)
Setter method that sets the username to be used for the authentication on Lightstreamer Server when initiating
the session.
|
@Nullable public java.lang.String getAdapterSet()
setAdapterSet(java.lang.String)
public void setAdapterSet(@Nullable java.lang.String adapterSet)
adapterSet
- The name of the Adapter Set to be used. A null value is equivalent to the "DEFAULT" name.LightstreamerClient.connectionDetails
object
before calling the LightstreamerClient.connect()
method. However, the value can be changed at any time:
the supplied value will be used for the next time a new session is requested to the server. LightstreamerClient
constructor.ClientListener.onPropertyChange(java.lang.String)
with argument "adapterSet" on any
ClientListener listening to the related LightstreamerClient.@Nullable public java.lang.String getServerAddress()
public void setServerAddress(@Nullable java.lang.String serverAddress)
serverAddress
- The full address of Lightstreamer Server. A null value can also be used, to restore the default value.
An IPv4 or IPv6 can also be used in place of a hostname. Some examples of valid values include:
http://push.mycompany.comjava.lang.IllegalArgumentException
- if the given address is not valid.LightstreamerClient
constructor.ClientListener.onPropertyChange(java.lang.String)
with argument "serverAddress" on any
ClientListener listening to the related LightstreamerClient.@Nullable public java.lang.String getUser()
public void setUser(@Nullable java.lang.String user)
user
- The username to be used for the authentication on Lightstreamer Server. The username can be null.setPassword(String)
LightstreamerClient.connectionDetails
object before
calling the LightstreamerClient.connect()
method. However, the value can be changed at any time: the
supplied value will be used for the next time a new session is requested to the server.ClientListener.onPropertyChange(java.lang.String)
with argument "user" on any
ClientListener listening to the related LightstreamerClient.@Nullable public java.lang.String getServerInstanceAddress()
setServerAddress(java.lang.String)
can
identify various Server instances; in order to ensure that all requests related to a session are issued to
the same Server instance, the Server can answer to the session opening request by providing an address which
uniquely identifies its own instance. When this is the case, this address is returned by the method; otherwise,
null is returned. ClientListener.onPropertyChange(java.lang.String)
with argument "serverInstanceAddress" on any
ClientListener listening to the related LightstreamerClient.@Nullable public java.lang.String getServerSocketName()
ClientListener.onPropertyChange(java.lang.String)
with argument "serverSocketName" on any
ClientListener listening to the related LightstreamerClient.@Nullable public java.lang.String getClientIp()
ClientListener.onPropertyChange(java.lang.String)
with argument "clientIp" on any
ClientListener listening to the related LightstreamerClient.@Nullable public java.lang.String getSessionId()
ClientListener.onPropertyChange(java.lang.String)
with argument "sessionId" on any
ClientListener listening to the related LightstreamerClient.public void setPassword(@Nullable java.lang.String password)
password
- The password to be used for the authentication on Lightstreamer Server.
The password can be null.setUser(String)
LightstreamerClient.connectionDetails
object before calling
the LightstreamerClient.connect()
method. However, the value can be changed at any time: the supplied
value will be used for the next time a new session is requested to the server. ClientListener.onPropertyChange(java.lang.String)
with argument "password" on any
ClientListener listening to the related LightstreamerClient.