import org.vamsas.client.ClientHandle;
import org.vamsas.client.IClient;
import org.vamsas.client.IClientFactory;
+import org.vamsas.client.NoDefaultSessionException;
import org.vamsas.client.UserHandle;
/**
throw(new IOException("Cannot read and write to a directory called "+path));
}
}
+
+ /* (non-Javadoc)
+ * @see org.vamsas.client.IClientFactory#getCurrentSessions()
+ */
+ public String[] getCurrentSessions() {
+ // TODO look in the arena and enumerate session handles for return.
+ return new String[] {};
+ }
/* (non-Javadoc)
* @see org.vamsas.client.IClientFactory#getIClient(org.vamsas.client.ClientHandle)
*/
- public IClient getIClient(ClientHandle applicationHandle) {
+ public IClient getIClient(ClientHandle applicationHandle) throws NoDefaultSessionException {
// create a new session
// register new ClientHandle in session
// create SimpleClient instance
/* (non-Javadoc)
* @see org.vamsas.client.IClientFactory#getIClient(org.vamsas.client.ClientHandle, org.vamsas.client.UserHandle)
*/
- public IClient getIClient(ClientHandle applicationHandle, UserHandle userId) {
+ public IClient getIClient(ClientHandle applicationHandle, UserHandle userId) throws NoDefaultSessionException {
// create new session
// register SimpleClient and UserHandles in session
// create client instance