|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sap.sdm.api.remote.ClientSessionFactory
An entry point for a client of the SDM remote client API.
| Constructor Summary | |
ClientSessionFactory()
|
|
| Method Summary | |
static ClientSession |
createRemoteClientSession(int port,
java.lang.String host)
Deprecated. |
static ClientSession |
createRemoteClientSession(int port,
java.lang.String host,
java.lang.String password)
Creates a client session on the specified SDM server. |
static ClientSession |
createRemoteClientSessionIDE(int port,
java.lang.String host,
java.lang.String password)
Creates a client session on the specified SDM server. |
static int |
getAPIClientVersion()
Returns the version information for the SDMClient.jar in use. |
static int |
getLoginTimeout()
Returns the timeout in ms which is used for the initial login to the SDM server. |
static void |
setLoginTimeout(int newTimeout)
Sets the timeout in ms which is used for the initial login to the SDM server. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClientSessionFactory()
| Method Detail |
public static ClientSession createRemoteClientSession(int port,
java.lang.String host)
throws RemoteException
port - the port on which the SDM server is listeninghost - the host name of the SDM serverClientSession representing the client sessionRemoteException - if no session on the specified SDM server
can be establishedjava.lang.RuntimeException - if the SDM remote client lib is not properly
installed
public static ClientSession createRemoteClientSession(int port,
java.lang.String host,
java.lang.String password)
throws RemoteException
createRemoteClientSessionIDE(int, String, String)
this method throws a RemoteException
when the login failes due to a wrong password.
This method is new with API client version 3.port - the port on which the SDM server is listeninghost - the host name of the SDM serverpassword - the password of the SDM serverClientSession representing the client sessionRemoteException - if no session on the specified SDM server
can be establishedjava.lang.RuntimeException - if the SDM remote client lib is not properly
installed
public static ClientSession createRemoteClientSessionIDE(int port,
java.lang.String host,
java.lang.String password)
throws RemoteException,
WrongPasswordException
createRemoteClientSession(int, String, String)
this method throws a WrongPasswordException
when the login failes due to a wrong password.
With that exception it should be easier to distinguish between
communication problems and password problems in case of failing login.
This method is new with API client version 3.port - the port on which the SDM server is listeninghost - the host name of the SDM serverpassword - the password of the SDM serverClientSession representing the client sessionRemoteException - if no session on the specified SDM server
can be establishedWrongPasswordException - if the wrong password was suppliedjava.lang.RuntimeException - if the SDM remote client lib is not properly
installedpublic static int getAPIClientVersion()
Client.getAPIServerVersion()
to check whether this client is of the same version as the server.int containing the version numberpublic static int getLoginTimeout()
int containing the timeout in mspublic static void setLoginTimeout(int newTimeout)
createRemoteClientSession(int, String, String)
to change the timeout used for the initial login.
if newTimeout < 0 then the timeout is set to zero i.e.
no timeout.newTimeout - the timeout in ms
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||