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 final class MStorStore
extends javax.mail.Store

Implementation of a javamail store for the mstor provider.

Author:
Ben Fortuna
 $Id$

 Created: [7/07/2004]
 

Field Summary
static java.lang.String INBOX
          The default inbox folder name.
 
Fields inherited from class javax.mail.Service
debug, session, url
 
Constructor Summary
MStorStore(javax.mail.Session session, javax.mail.URLName url)
          Constructor.
 
Method Summary
 void close()
          
 javax.mail.Folder getDefaultFolder()
          
 javax.mail.Folder getFolder(java.lang.String name)
          
 javax.mail.Folder getFolder(javax.mail.URLName url)
          
protected  boolean protocolConnect(java.lang.String host, int port, java.lang.String user, java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INBOX

public static final java.lang.String INBOX
The default inbox folder name.

See Also:
Constant Field Values
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(java.lang.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(java.lang.String host,
                                  int port,
                                  java.lang.String user,
                                  java.lang.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

Overrides:
close in class javax.mail.Service
Throws:
javax.mail.MessagingException


Copyright © 2004-2011 Micronode. All Rights Reserved.