|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.samplers.AbstractSampler org.apache.jmeter.protocol.mail.sampler.MailReaderSampler
public class MailReaderSampler
Sampler that can read from POP3 and IMAP mail servers
Field Summary | |
---|---|
static int |
ALL_MESSAGES
|
static String |
DEFAULT_PROTOCOL
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
MailReaderSampler()
|
Method Summary | |
---|---|
boolean |
applies(ConfigTestElement configElement)
Does configElement apply to Sampler |
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
---|
addTestElement, 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, traverse |
Field Detail |
---|
public static final String DEFAULT_PROTOCOL
public static final int ALL_MESSAGES
Constructor Detail |
---|
public MailReaderSampler()
Method Detail |
---|
public boolean isUseLocalTrustStore()
public String getTrustStoreToUse()
public boolean isUseSSL()
public boolean isUseStartTLS()
public boolean isTrustAllCerts()
public boolean isEnforceStartTLS()
public SampleResult sample(Entry e)
sample
in interface Sampler
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 String toString()
toString
in class Object
public boolean interrupt()
interrupt
in interface Interruptible
true
if there was an operation to interrupt.public boolean applies(ConfigTestElement configElement)
AbstractSampler
applies
in interface ConfigMergabilityIndicator
applies
in class AbstractSampler
configElement
- ConfigTestElement
AbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |