public class Sessions
extends java.lang.Object
Constructor and Description |
---|
Sessions()
Constructs a new Sessions object
|
Sessions(java.lang.String iaURI,
java.lang.String iaUserid,
java.lang.String iaPassword)
Constructs a new Sessions object, and uses the parameters passed to connect to
the engine via Interface A so that the registered services' and client
applications' credentials can be retrieved.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkConnection(java.lang.String handle)
Checks that a session handle is valid and active (i.e.
|
java.lang.String |
connect(java.lang.String userid,
java.lang.String password)
Attempts to establish a session using the credentials passed
|
boolean |
disconnect(java.lang.String handle)
Ends a session
|
void |
setupInterfaceA(java.lang.String iaURI,
java.lang.String iaUserid,
java.lang.String iaPassword)
Uses the parameters passed to connect to the engine via Interface A so that the
registered services' and client applications' credentials can be retrieved.
|
void |
shutdown()
Cancels all current sessions and their inactivity timers.
|
public Sessions()
public Sessions(java.lang.String iaURI, java.lang.String iaUserid, java.lang.String iaPassword)
iaURI
- The URI of the engine's Interface AiaUserid
- the userid of the registered service or client app calling this methodiaPassword
- the password of the registered service or client app calling this methodpublic void setupInterfaceA(java.lang.String iaURI, java.lang.String iaUserid, java.lang.String iaPassword)
iaURI
- The URI of the engine's Interface AiaUserid
- the userid of the registered service or client app calling this methodiaPassword
- the password of the registered service or client app calling this methodpublic void shutdown()
public java.lang.String connect(java.lang.String userid, java.lang.String password)
userid
- the userid of a registered service or client applicationpassword
- the corresponding passwordpublic boolean checkConnection(java.lang.String handle)
handle
- the session handle to checkpublic boolean disconnect(java.lang.String handle)
handle
- the session handle to cancelCopyright © 2004-2014 The YAWL Foundation.