net.fortuna.mstor
Class MStorStore

java.lang.Object
  extended by javax.mail.Service
      extended by javax.mail.Store
          extended by net.fortuna.mstor.MStorStore

public class MStorStore
extends Store

Implementation of a javamail store for the mstor provider. Metadata is enabled by default, however it may be disabled by specifying the following session property:

      mstor.meta.enabled=false
 

Author:
Ben Fortuna

Field Summary
static String INBOX
           
 
Fields inherited from class javax.mail.Service
debug, session, url
 
Constructor Summary
MStorStore(Session session, URLName url)
          Constructor.
 
Method Summary
 Folder getDefaultFolder()
           
 Folder getFolder(String name)
           
 Folder getFolder(URLName url)
           
 boolean isMetaEnabled()
           
protected  boolean protocolConnect(String arg0, int arg1, String arg2, String arg3)
          Override the superclass method to bypass authentication.
 void setMetaEnabled(boolean metaEnabled)
           
 
Methods inherited from class javax.mail.Store
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
 
Methods inherited from class javax.mail.Service
addConnectionListener, close, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INBOX

public static final String INBOX
See Also:
Constant Field Values
Constructor Detail

MStorStore

public MStorStore(Session session,
                  URLName url)
Constructor.

Parameters:
session -
url -
Method Detail

getDefaultFolder

public final Folder getDefaultFolder()
                              throws MessagingException
Specified by:
getDefaultFolder in class Store
Throws:
MessagingException

getFolder

public final Folder getFolder(String name)
                       throws MessagingException
Specified by:
getFolder in class Store
Throws:
MessagingException

getFolder

public final Folder getFolder(URLName url)
                       throws MessagingException
Specified by:
getFolder in class Store
Throws:
MessagingException

protocolConnect

protected final boolean protocolConnect(String arg0,
                                        int arg1,
                                        String arg2,
                                        String arg3)
                                 throws MessagingException
Override the superclass method to bypass authentication.

Overrides:
protocolConnect in class Service
Throws:
MessagingException

isMetaEnabled

public final boolean isMetaEnabled()
Returns:
Returns the metaEnabled.

setMetaEnabled

public final void setMetaEnabled(boolean metaEnabled)
Parameters:
metaEnabled - The metaEnabled to set.