@Deprecated public class SessionClient extends AbstractRPCClient
Session
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
ID
Deprecated.
|
private java.lang.String |
url
Deprecated.
|
Constructor and Description |
---|
SessionClient(java.lang.String url,
java.lang.String ID,
java.lang.String externalClientId)
Deprecated.
Creates a new SessionClient using the default service factory.
|
SessionClient(java.lang.String url,
java.lang.String ID,
java.lang.String externalClientId,
ServiceFactory serviceFactory)
Deprecated.
Creates a new SessionClient using a specific service factory.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Deprecated.
Gets the id of the session.
|
int |
getSessionTimeOut()
Deprecated.
Gets how long time it takes before
the session timeout.
|
java.lang.String |
getUrl()
Deprecated.
Gets the URL of the session
|
VersionInfo |
getVersion()
Deprecated.
|
void |
login(java.lang.String login,
java.lang.String password,
java.lang.String comment)
Deprecated.
Login to BASE
|
void |
logout()
Deprecated.
Logs out from BASE
|
void |
refreshSession(java.lang.String ID)
Deprecated.
Refresh a session to prevent a timeout.
|
getOperation, getService, getServiceFactory, invokeBlocking, invokeBlocking, invokeBlocking, invokeFileBlocking, setServiceFactory
private final java.lang.String url
private final java.lang.String ID
public SessionClient(java.lang.String url, java.lang.String ID, java.lang.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(java.lang.String url, java.lang.String ID, java.lang.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 java.lang.String getUrl()
public java.lang.String getId()
public void login(java.lang.String login, java.lang.String password, java.lang.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(java.lang.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