Class MStorStore

  • All Implemented Interfaces:
    AutoCloseable

    public final class MStorStore
    extends javax.mail.Store
    Implementation of a javamail store for the mstor provider.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String INBOX
      The default inbox folder name.
      • Fields inherited from class javax.mail.Service

        debug, session, url
    • Constructor Summary

      Constructors 
      Constructor Description
      MStorStore​(javax.mail.Session session, javax.mail.URLName url)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      javax.mail.Folder getDefaultFolder()
      javax.mail.Folder getFolder​(String name)
      javax.mail.Folder getFolder​(javax.mail.URLName url)
      protected boolean protocolConnect​(String host, int port, String user, String password)
      • 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, connect, connect, connect, connect, finalize, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
    • Constructor Detail

      • MStorStore

        public MStorStore​(javax.mail.Session session,
                          javax.mail.URLName url)
        Constructor.
        Parameters:
        session - the session associated with the store
        url - a store location URL
    • Method Detail

      • getDefaultFolder

        public javax.mail.Folder getDefaultFolder()
                                           throws javax.mail.MessagingException
        Specified by:
        getDefaultFolder in class javax.mail.Store
        Throws:
        javax.mail.MessagingException
      • getFolder

        public javax.mail.Folder getFolder​(String name)
                                    throws javax.mail.MessagingException
        Specified by:
        getFolder in class javax.mail.Store
        Throws:
        javax.mail.MessagingException
      • getFolder

        public javax.mail.Folder getFolder​(javax.mail.URLName url)
                                    throws javax.mail.MessagingException
        Specified by:
        getFolder in class javax.mail.Store
        Throws:
        javax.mail.MessagingException
      • protocolConnect

        protected boolean protocolConnect​(String host,
                                          int port,
                                          String user,
                                          String password)
                                   throws javax.mail.MessagingException
        Overrides:
        protocolConnect in class javax.mail.Service
        Throws:
        javax.mail.MessagingException
      • close

        public void close()
                   throws javax.mail.MessagingException
        Specified by:
        close in interface AutoCloseable
        Overrides:
        close in class javax.mail.Service
        Throws:
        javax.mail.MessagingException