org.emboss.jemboss.soap
Class FileRoots

java.lang.Object
  extended byorg.emboss.jemboss.soap.FileRoots
All Implemented Interfaces:
java.io.Serializable

public class FileRoots
extends java.lang.Object
implements java.io.Serializable

Retrieve the list of available filesystem roots

See Also:
Serialized Form

Field Summary
private  java.lang.String currentDir
          currently selected directory
private  java.lang.String currentRoot
          currently selected root
private  java.lang.String defaultRoot
          default root
private  int defaultRootIndex
          default root index
private  java.util.Hashtable fileRoots
          server directory roots
private  java.util.Vector rootVector
          file system roots
 
Constructor Summary
FileRoots(JembossParams mysettings)
           
 
Method Summary
 java.lang.String getCurrentDir()
          Get the currently selected directory
 java.lang.String getCurrentRoot()
          Get the currently selected root
 java.lang.String getDefaultRoot()
          Get the default root, if defined, else return null
 int getDefaultRootIndex()
          Get the index of the default root in the Vector, else return -1
 java.util.Hashtable getRoots()
          Get the list of file manager roots
 java.util.Vector getRootVector()
          Get the list of file manager roots
private  void readObject(java.io.ObjectInputStream in)
           
 void setCurrentDir(java.lang.String newDir)
          Set the current directory
 void setCurrentRoot(java.lang.String newRoot)
          Set the current root
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileRoots

private java.util.Hashtable fileRoots
server directory roots


currentRoot

private java.lang.String currentRoot
currently selected root


currentDir

private java.lang.String currentDir
currently selected directory


rootVector

private java.util.Vector rootVector
file system roots


defaultRoot

private java.lang.String defaultRoot
default root


defaultRootIndex

private int defaultRootIndex
default root index

Constructor Detail

FileRoots

public FileRoots(JembossParams mysettings)
          throws JembossSoapException
Parameters:
mysettings - jemboss properties
Throws:
JembossSoapException - if connection fails
Method Detail

getRoots

public java.util.Hashtable getRoots()
Get the list of file manager roots

Returns:
file manager roots

getRootVector

public java.util.Vector getRootVector()
Get the list of file manager roots

Returns:
file manager roots

getDefaultRoot

public java.lang.String getDefaultRoot()
Get the default root, if defined, else return null

Returns:
default root

getDefaultRootIndex

public int getDefaultRootIndex()
Get the index of the default root in the Vector, else return -1

Returns:
default root index

getCurrentDir

public java.lang.String getCurrentDir()
Get the currently selected directory

Returns:
currently selected directory

setCurrentDir

public void setCurrentDir(java.lang.String newDir)
Set the current directory

Parameters:
newDir - name of the new current directory

getCurrentRoot

public java.lang.String getCurrentRoot()
Get the currently selected root

Returns:
selected root

setCurrentRoot

public void setCurrentRoot(java.lang.String newRoot)
Set the current root

Parameters:
newRoot - name of the new root.

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException