Class MailFileFolder
java.lang.Object
javax.mail.Folder
org.apache.jmeter.protocol.mail.sampler.MailFileFolder
public class MailFileFolder
extends javax.mail.Folder
-
Field Summary
Fields inherited from class javax.mail.Folder
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store
-
Constructor Summary
ConstructorDescriptionMailFileFolder
(javax.mail.Store store, String path) MailFileFolder
(javax.mail.Store store, javax.mail.URLName path) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendMessages
(javax.mail.Message[] messages) void
close
(boolean expunge) boolean
create
(int type) boolean
delete
(boolean recurse) boolean
exists()
javax.mail.Message[]
expunge()
javax.mail.Folder
javax.mail.Message
getMessage
(int index) int
getName()
javax.mail.Folder
javax.mail.Flags
char
int
getType()
boolean
boolean
isOpen()
javax.mail.Folder[]
void
open
(int mode) boolean
renameTo
(javax.mail.Folder newName) Methods inherited from class javax.mail.Folder
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, copyMessages, fetch, finalize, getDeletedMessageCount, getMessages, getMessages, getMessages, getMode, getNewMessageCount, getStore, getUnreadMessageCount, getURLName, isSubscribed, list, listSubscribed, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, search, search, setFlags, setFlags, setFlags, setSubscribed, toString
-
Constructor Details
-
MailFileFolder
-
MailFileFolder
public MailFileFolder(javax.mail.Store store, javax.mail.URLName path)
-
-
Method Details
-
appendMessages
public void appendMessages(javax.mail.Message[] messages) throws javax.mail.MessagingException - Specified by:
appendMessages
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
close
public void close(boolean expunge) throws javax.mail.MessagingException - Specified by:
close
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
create
public boolean create(int type) throws javax.mail.MessagingException - Specified by:
create
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
delete
public boolean delete(boolean recurse) throws javax.mail.MessagingException - Specified by:
delete
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
exists
public boolean exists() throws javax.mail.MessagingException- Specified by:
exists
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
expunge
public javax.mail.Message[] expunge() throws javax.mail.MessagingException- Specified by:
expunge
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
getFolder
- Specified by:
getFolder
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
getFullName
- Specified by:
getFullName
in classjavax.mail.Folder
-
getMessage
public javax.mail.Message getMessage(int index) throws javax.mail.MessagingException - Specified by:
getMessage
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
getMessageCount
public int getMessageCount() throws javax.mail.MessagingException- Specified by:
getMessageCount
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
getName
- Specified by:
getName
in classjavax.mail.Folder
-
getParent
public javax.mail.Folder getParent() throws javax.mail.MessagingException- Specified by:
getParent
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
getPermanentFlags
public javax.mail.Flags getPermanentFlags()- Specified by:
getPermanentFlags
in classjavax.mail.Folder
-
getSeparator
public char getSeparator() throws javax.mail.MessagingException- Specified by:
getSeparator
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
getType
public int getType() throws javax.mail.MessagingException- Specified by:
getType
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
hasNewMessages
public boolean hasNewMessages() throws javax.mail.MessagingException- Specified by:
hasNewMessages
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in classjavax.mail.Folder
-
list
- Specified by:
list
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
open
public void open(int mode) throws javax.mail.MessagingException - Specified by:
open
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-
renameTo
public boolean renameTo(javax.mail.Folder newName) throws javax.mail.MessagingException - Specified by:
renameTo
in classjavax.mail.Folder
- Throws:
javax.mail.MessagingException
-