public class ConnectionInfo
extends java.lang.Object
Constructor and Description |
---|
ConnectionInfo(java.lang.String server)
Creates a connection settings bean object with default settings specified.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdapter()
Recalls the configured name of the Adapter Set mounted on
Lightstreamer Server to be used to handle all requests in the session.
|
int |
getContentLength()
Recalls the configured response content length to be requested
for the stream connection.
|
int |
getControlPort()
Recalls the configured TCP port to be used for the control
connections to Lightstreamer Server.
|
java.lang.String |
getControlProtocol()
Gets the protocol to be used for the control connections
to Lightstreamer Server, according to what configured through
setWorkInHttps(boolean) and setControlInHttps(boolean) . |
int |
getPort()
Recalls the configured TCP port to be used for the stream/poll
connections to Lightstreamer Server.
|
java.lang.String |
getProtocol()
Gets the protocol to be used for the stream/poll connections
to Lightstreamer Server, according to what configured through
setWorkInHttps(boolean) . |
java.lang.String |
getServer()
Recalls the configured address of Lightstreamer Server.
|
java.lang.String |
getUser()
Recalls the configured username to be used for the authentication
on Lightstreamer Server at connection start.
|
void |
setAdapter(java.lang.String adapterName)
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 |
setContentLength(int contentLength)
Setter method that sets the length to be used by the Server for the response body on a
stream connection (a minimum length, however, is ensured by the server).
|
void |
setControlInHttps(boolean https)
Setter method that sets the protocol to be used for the control connections
to Lightstreamer Server.
|
void |
setControlPort(int controlPort)
Setter method that sets the TCP port to be used for the control connections
to Lightstreamer Server.
|
void |
setPassword(java.lang.String password)
Setter method that sets the password to be used for the authentication
on Lightstreamer Server at connection start.
|
void |
setPort(int port)
Setter method that sets the TCP port to be used for the stream/poll connections to Lightstreamer Server.
|
void |
setServer(java.lang.String server)
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 at connection start.
|
void |
setWorkInHttps(boolean https)
Setter method that sets the protocol to be used for the stream/poll connections to Lightstreamer Server.
|
public ConnectionInfo(java.lang.String server)
server
- The full address of Lightstreamer Server (e.g. "push.mycompany.com").public void setServer(java.lang.String server)
server
- The full address of Lightstreamer Server (e.g. "push.mycompany.com").public void setAdapter(java.lang.String adapterName)
adapterName
- The name of the Adapter Set to be used.SimpleTableInfo.setDataAdapter(java.lang.String)
public void setUser(java.lang.String user)
user
- The username to be used for the authentication on Lightstreamer Server.public void setPassword(java.lang.String password)
password
- The password to be used for the authentication on Lightstreamer Server.public void setPort(int port)
port
- The TCP port to be used for the stream/poll connections (default is 8080).public void setWorkInHttps(boolean https)
Note that HTTPS is not part of MIDP1.0 specs and depends entirely by mobile implementations.
https
- True to use HTTPS for stream/poll connections, false otherwise (default is false).public void setControlPort(int controlPort)
LSClient
in single connection mode this set is useless.controlPort
- The TCP port to be used for the control connections
(default is the value of setPort(int)
).public void setControlInHttps(boolean https)
LSClient
in single connection mode this set is useless.
Note that HTTPS is not part of MIDP1.0 specs and depends entirely by mobile implementations.
https
- True to use HTTPS for control connections, false otherwise
(default is the value of setWorkInHttps(boolean)
).public void setContentLength(int contentLength)
contentLength
- The content length in byte. Default value is 1000000.public java.lang.String getServer()
public java.lang.String getAdapter()
public java.lang.String getUser()
public int getPort()
public java.lang.String getProtocol()
setWorkInHttps(boolean)
.public int getControlPort()
public java.lang.String getControlProtocol()
setWorkInHttps(boolean)
and setControlInHttps(boolean)
.public int getContentLength()