com.antelmann.net.mail
Class LocalSerializedFolderWrapper
java.lang.Object
javax.mail.Folder
com.antelmann.net.mail.LocalSerializedFolderWrapper
- All Implemented Interfaces:
- Serializable
public class LocalSerializedFolderWrapper
- extends javax.mail.Folder
- implements Serializable
provides a way to serialize some folder info to be serialized without the
context of the store. It does, however, maintain the URLName of the original
folder
- Since:
- 06.01.2017, 10:58:40
- Author:
- holger
- See Also:
MessageEntry.serialize(),
Serialized Form
| Fields inherited from class javax.mail.Folder |
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store |
| Methods inherited from class javax.mail.Folder |
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, copyMessages, fetch, finalize, getDeletedMessageCount, getMessages, getMessages, getMessages, getMode, getNewMessageCount, getStore, getUnreadMessageCount, isSubscribed, list, listSubscribed, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, search, search, setFlags, setFlags, setFlags, setSubscribed, toString |
LocalSerializedFolderWrapper
public LocalSerializedFolderWrapper(String name)
LocalSerializedFolderWrapper
public LocalSerializedFolderWrapper(String name,
String fullName,
String urlName,
char separator,
Class<? extends javax.mail.Folder> originClass)
LocalSerializedFolderWrapper
protected LocalSerializedFolderWrapper(javax.mail.Folder folder)
throws javax.mail.MessagingException,
MalformedURLException
- Throws:
javax.mail.MessagingException
MalformedURLException
getOriginClass
public Class<? extends javax.mail.Folder> getOriginClass()
getURLName
public javax.mail.URLName getURLName()
throws javax.mail.MessagingException
- Overrides:
getURLName in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
appendMessages
public void appendMessages(javax.mail.Message[] msgs)
throws javax.mail.MessagingException
- Specified by:
appendMessages in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
close
public void close(boolean expunge)
throws javax.mail.MessagingException
- Specified by:
close in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
create
public boolean create(int type)
throws javax.mail.MessagingException
- Specified by:
create in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
delete
public boolean delete(boolean recurse)
throws javax.mail.MessagingException
- Specified by:
delete in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
exists
public boolean exists()
throws javax.mail.MessagingException
- Specified by:
exists in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
expunge
public javax.mail.Message[] expunge()
throws javax.mail.MessagingException
- Specified by:
expunge in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
getFolder
public javax.mail.Folder getFolder(String name)
throws javax.mail.MessagingException
- Specified by:
getFolder in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
getFullName
public String getFullName()
- Specified by:
getFullName in class javax.mail.Folder
getMessage
public javax.mail.Message getMessage(int msgnum)
throws javax.mail.MessagingException
- Specified by:
getMessage in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
getMessageCount
public int getMessageCount()
throws javax.mail.MessagingException
- Specified by:
getMessageCount in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
getName
public String getName()
- Specified by:
getName in class javax.mail.Folder
getParent
public javax.mail.Folder getParent()
throws javax.mail.MessagingException
- Specified by:
getParent in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
getPermanentFlags
public javax.mail.Flags getPermanentFlags()
- Specified by:
getPermanentFlags in class javax.mail.Folder
getSeparator
public char getSeparator()
throws javax.mail.MessagingException
- Specified by:
getSeparator in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
getType
public int getType()
throws javax.mail.MessagingException
- Specified by:
getType in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
hasNewMessages
public boolean hasNewMessages()
throws javax.mail.MessagingException
- Specified by:
hasNewMessages in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
isOpen
public boolean isOpen()
- Specified by:
isOpen in class javax.mail.Folder
list
public javax.mail.Folder[] list(String pattern)
throws javax.mail.MessagingException
- Specified by:
list in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
open
public void open(int mode)
throws javax.mail.MessagingException
- Specified by:
open in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
renameTo
public boolean renameTo(javax.mail.Folder f)
throws javax.mail.MessagingException
- Specified by:
renameTo in class javax.mail.Folder
- Throws:
javax.mail.MessagingException
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads