|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lightstreamer.javameclient.midp.ConnectionInfo
public class ConnectionInfo
Collects the parameters related to a connection request to Lightstreamer Server.
| Constructor Summary | |
|---|---|
ConnectionInfo(java.lang.String server)
Creates a connection settings bean object with default settings specified. |
|
| Method Summary | |
|---|---|
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 Content-Length for the 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionInfo(java.lang.String server)
server - The full address of Lightstreamer Server (e.g. "push.mycompany.com").| Method Detail |
|---|
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
te 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||