talx x1.0.5

edu.uoregon.talstore
Class TALStore

java.lang.Object
  extended byjavax.mail.Service
      extended byjavax.mail.Store
          extended byedu.uoregon.talstore.TALStore

public class TALStore
extends javax.mail.Store

Store implementation that uses "tal" protocol.


Field Summary
 
Fields inherited from class javax.mail.Service
debug, session, url
 
Constructor Summary
TALStore(javax.mail.Session session, javax.mail.URLName urlname)
           
 
Method Summary
protected  void add(edu.uoregon.talstore.TALFolder f)
          Adds the given folder to the list of open folders.
 void close()
           
 javax.mail.Folder getDefaultFolder()
           
 javax.mail.Folder getFolder(java.lang.String name)
          Returns new folder with given name in the current user's folder space.
 javax.mail.Folder getFolder(javax.mail.URLName url)
           
protected  java.lang.String getLocation()
           
 javax.mail.Folder[] getPersonalNamespaces()
          Returns the list of folders.
protected  java.lang.String getUsername()
           
protected  boolean protocolConnect(java.lang.String host, int port, java.lang.String user, java.lang.String password)
           
protected  void remove(edu.uoregon.talstore.TALFolder f)
          Removes the given folder from the list of open folders.
 
Methods inherited from class javax.mail.Store
addFolderListener, addStoreListener, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
 
Methods inherited from class javax.mail.Service
addConnectionListener, connect, connect, connect, finalize, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TALStore

public TALStore(javax.mail.Session session,
                javax.mail.URLName urlname)
Method Detail

getLocation

protected java.lang.String getLocation()

protocolConnect

protected boolean protocolConnect(java.lang.String host,
                                  int port,
                                  java.lang.String user,
                                  java.lang.String password)
                           throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

close

public void close()
           throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

remove

protected void remove(edu.uoregon.talstore.TALFolder f)
               throws javax.mail.MessagingException
Removes the given folder from the list of open folders.

Throws:
javax.mail.MessagingException

add

protected void add(edu.uoregon.talstore.TALFolder f)
            throws javax.mail.MessagingException
Adds the given folder to the list of open folders.

Throws:
javax.mail.MessagingException

getUsername

protected java.lang.String getUsername()

getDefaultFolder

public javax.mail.Folder getDefaultFolder()
                                   throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getFolder

public javax.mail.Folder getFolder(javax.mail.URLName url)
                            throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

getFolder

public javax.mail.Folder getFolder(java.lang.String name)
                            throws javax.mail.MessagingException
Returns new folder with given name in the current user's folder space. The actual name of the folder returned will contain only uppercase letters.

Throws:
javax.mail.MethodNotSupportedException - if the folder name includes any non-alpha-numeric characters.
javax.mail.MessagingException

getPersonalNamespaces

public javax.mail.Folder[] getPersonalNamespaces()
                                          throws javax.mail.MessagingException
Returns the list of folders. Since TALStores do not support nested folders, the list of top level namespaces is the same as the list of folders.

Throws:
javax.mail.MessagingException

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.