public class MailReaderSampler extends AbstractSampler implements Interruptible
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_MESSAGES |
static String |
DEFAULT_PROTOCOL |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
MailReaderSampler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDeleteMessages() |
String |
getFolder() |
int |
getNumMessages() |
String |
getNumMessagesString() |
String |
getPassword() |
String |
getPort() |
String |
getServer() |
String |
getServerType()
Returns the type of the protocol set to use when talking with the remote
server.
|
String |
getTrustStoreToUse() |
String |
getUserName() |
boolean |
interrupt()
Interrupt the current operation if possible.
|
boolean |
isEnforceStartTLS() |
boolean |
isStoreMimeMessage() |
boolean |
isTrustAllCerts() |
boolean |
isUseLocalTrustStore() |
boolean |
isUseSSL() |
boolean |
isUseStartTLS() |
SampleResult |
sample(Entry e)
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
|
void |
setDeleteMessages(boolean delete) |
void |
setFolder(String folder) |
void |
setNumMessages(int num_messages) |
void |
setNumMessages(String num_messages) |
void |
setPassword(String password) |
void |
setPort(String port) |
void |
setServer(String server) |
void |
setServerType(String serverType)
Sets the type of protocol to use when talking with the remote mail
server.
|
void |
setStoreMimeMessage(boolean storeMimeMessage) |
void |
setUserName(String username) |
String |
toString() |
addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyfinalize, getClass, notify, notifyAll, wait, wait, waitaddTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traversepublic static final String DEFAULT_PROTOCOL
public static final int ALL_MESSAGES
public boolean isUseLocalTrustStore()
public String getTrustStoreToUse()
public boolean isUseSSL()
public boolean isUseStartTLS()
public boolean isTrustAllCerts()
public boolean isEnforceStartTLS()
public SampleResult sample(Entry e)
public void setServerType(String serverType)
serverType - public String getServerType()
public void setServer(String server)
server - -
The name or address of the remote server.public String getServer()
public String getPort()
public void setPort(String port)
public void setUserName(String username)
username - -
The username of the mail account.public String getUserName()
public void setPassword(String password)
password - public String getPassword()
public void setFolder(String folder)
folder - -
Name of the folder to read emails from. "INBOX" is the only
acceptable value if the server type is POP3.public String getFolder()
public void setNumMessages(int num_messages)
num_messages - -
The number of messages to retrieve from the mail server. Set
this value to -1 to retrieve all messages.public void setNumMessages(String num_messages)
num_messages - -
The number of messages to retrieve from the mail server. Set
this value to -1 to retrieve all messages.public int getNumMessages()
public String getNumMessagesString()
public void setDeleteMessages(boolean delete)
delete - -
Whether or not to delete the read messages from the folder.public boolean getDeleteMessages()
public boolean isStoreMimeMessage()
public void setStoreMimeMessage(boolean storeMimeMessage)
storeMimeMessage - Whether or not to store the retrieved message as MIME message in the
sample resultpublic boolean interrupt()
interrupt in interface Interruptibletrue if there was an operation to interrupt.Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.