/**
* the sessionDir is given as the session location for new clients.
*/
- File sessionDir;
+ protected File sessionDir;
/**
* holds the list of attached clients
*/
if (sessionDir==null)
throw new Error("Null directory for VamsasSession.");
if (sessionDir.exists()) {
- if (!sessionDir.isDirectory() || !sessionDir.canWrite() || sessionDir.canRead())
+ if (!sessionDir.isDirectory() || !sessionDir.canWrite() || !sessionDir.canRead())
throw new IOException("Cannot access '"+sessionDir+"' as a read/writable Directory.");
if (checkSessionFiles(sessionDir)) {
// session files exist in the directory
* create a new session with an existing vamsas Document - by copying it into the session.
* @param archive
*/
- protected void setVamsasDocument(File archive) throws IOException {
+ public void setVamsasDocument(File archive) throws IOException {
log.debug("Transferring vamsas data from "+archive+" to session:"+vamArchive.sessionFile);
SessionFile xtantdoc = new SessionFile(archive);
vamArchive.updateFrom(null, xtantdoc);