|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.ws.client.AbstractRPCClient net.sf.basedb.ws.client.SessionClient
public class SessionClient
Client for handling sessions.
Session
Field Summary | |
---|---|
private String |
ID
|
private String |
url
|
Constructor Summary | |
---|---|
SessionClient(String url,
String ID,
String externalClientId)
Creates a new SessionClient using the default service factory. |
|
SessionClient(String url,
String ID,
String externalClientId,
ServiceFactory serviceFactory)
Creates a new SessionClient using a specific service factory. |
Method Summary | |
---|---|
String |
getChallenge()
Calling the getChallenge method. |
String |
getId()
Gets the id of the session. |
int |
getSessionTimeOut()
Gets how long time it takes before the session timeout. |
String |
getUrl()
Gets the URL of the session |
VersionInfo |
getVersion()
|
void |
login(String login,
String password,
String comment,
boolean encrypted)
Login to BASE |
void |
logout()
Logs out from BASE |
void |
refreshSession(String ID)
Refresh a session to prevent a timeout. |
Methods inherited from class net.sf.basedb.ws.client.AbstractRPCClient |
---|
getOperation, getService, getServiceFactory, invokeBlocking, invokeBlocking, invokeBlocking, invokeFileBlocking, setServiceFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final String url
private final String ID
Constructor Detail |
---|
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 failsMethod Detail |
---|
public String getUrl()
public String getId()
public String getChallenge() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- If communication with web service fails.public void login(String login, String password, String comment, boolean encrypted) throws org.apache.axis2.AxisFault
login
- Login name on BASE serverpassword
- Password on BASE servercomment
- A comment to put on the sessionencrypted
- If the password should be encrypted when logging in.
org.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
object
org.apache.axis2.AxisFault
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |