@Deprecated public class SessionClient extends AbstractRPCClient
Session
Modifier and Type | Field and Description |
---|---|
private String |
ID
Deprecated.
|
private String |
url
Deprecated.
|
Constructor and Description |
---|
SessionClient(String url,
String ID,
String externalClientId)
Deprecated.
Creates a new SessionClient using the default service factory.
|
SessionClient(String url,
String ID,
String externalClientId,
ServiceFactory serviceFactory)
Deprecated.
Creates a new SessionClient using a specific service factory.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Deprecated.
Gets the id of the session.
|
int |
getSessionTimeOut()
Deprecated.
Gets how long time it takes before
the session timeout.
|
String |
getUrl()
Deprecated.
Gets the URL of the session
|
VersionInfo |
getVersion()
Deprecated.
|
void |
login(String login,
String password,
String comment)
Deprecated.
Login to BASE
|
void |
logout()
Deprecated.
Logs out from BASE
|
void |
refreshSession(String ID)
Deprecated.
Refresh a session to prevent a timeout.
|
getOperation, getService, getServiceFactory, invokeBlocking, invokeBlocking, invokeBlocking, invokeFileBlocking, setServiceFactory
public SessionClient(String url, String ID, String externalClientId) throws org.apache.axis2.AxisFault
url
- The url where web services are located.ID
- Session id of a logged in session. A new session will be created if this is NULL.externalClientId
- External id of the client that is registered in BASE.org.apache.axis2.AxisFault
- If communication with the web service fails.public SessionClient(String url, String ID, String externalClientId, ServiceFactory serviceFactory) throws org.apache.axis2.AxisFault
url
- The url where web services are located.ID
- Session id of a logged in session. A new session will be created if this is NULL.externalClientId
- External id of the client that is registered in BASE.serviceFactory
- The service factory to use, or null to
use the default: Factories.getDefaultServiceFactory()
org.apache.axis2.AxisFault
- If communication with the web service failspublic String getUrl()
public String getId()
public void login(String login, String password, String comment) throws org.apache.axis2.AxisFault
login
- Login name on BASE serverpassword
- Password on BASE servercomment
- A comment to put on the sessionorg.apache.axis2.AxisFault
- If something goes wrong when calling the login servicepublic void logout() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- If something goes wrong
calling the logout service.public int getSessionTimeOut() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- If something goes wrong calling the services.public void refreshSession(String ID) throws org.apache.axis2.AxisFault
ID
- The id of the session to refresh.org.apache.axis2.AxisFault
- If anything goes wrong calling the service.public VersionInfo getVersion() throws org.apache.axis2.AxisFault
VersionInfo
objectorg.apache.axis2.AxisFault