|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.jmeter.protocol.smtp.sampler.gui.SmtpPanel
public class SmtpPanel
Class to build gui-components for SMTP-sampler. Getter-methods serve the input-data to the sampler-object, which provides them to the SendMailCommand-object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SmtpPanel()
Creates new form SmtpPanel, standard constructer. |
Method Summary | |
---|---|
void |
clear()
Reset all the Gui fields. |
String |
getAttachments()
Returns path of file(s) to be attached in e-mail from textfield |
String |
getBody()
Returns message body, i.e. main-mime-part of message (from textfield) |
String |
getEmlMessage()
Returns path to eml message to be sent |
CollectionProperty |
getHeaderFields()
|
String |
getMailFrom()
Returns sender-address for e-mail from textfield |
String |
getPassword()
|
String |
getPort()
Returns port of mail-server (standard 25 for SMTP/SMTP with StartTLS, 465 for SSL) from textfield |
String |
getReceiverBCC()
Returns receiver in field "bcc" from textfield |
String |
getReceiverCC()
Returns receiver in field "cc" from textfield |
String |
getReceiverTo()
Returns receiver in field "to" from textfield |
String |
getServer()
Returns mail-server to be used to send message (from textfield) |
String |
getSubject()
Returns subject of the e-mail from textfield |
String |
getTrustStoreToUse()
Returns the path to the local (pre-installed) truststore to be used to avoid SSL-connection-exceptions |
String |
getUsername()
|
boolean |
isEnableDebug()
|
boolean |
isEnforceStartTLS()
Returns if StartTLS is enforced (normally, SMTP uses plain SMTP-connection as fallback if "250-STARTTLS" isn't sent from the mailserver) (checkbox) |
boolean |
isIncludeTimestamp()
Returns if current timestamp is included in the subject (checkbox) |
boolean |
isMessageSizeStatistics()
Returns if message size statistics are processed. |
boolean |
isTrustAllCerts()
Returns if all certificates are blindly trusted (using according SocketFactory) (checkbox) |
boolean |
isUseAuth()
Returns if mail-server needs authentication (checkbox) |
boolean |
isUseEmlMessage()
Returns if an .eml-message is sent instead of the content of message-text area |
boolean |
isUseLocalTrustStore()
Returns if local (pre-installed) truststore is used to avoid SSL-connection-exceptions (checkbox) |
boolean |
isUseSSL()
Returns if SSL is used to secure the SMTP-connection (checkbox) |
boolean |
isUseStartTLS()
Returns if StartTLS is used to secure the connection (checkbox) |
void |
setAttachments(String attachments)
Sets path of file to be attached in e-mail in textfield |
void |
setBody(String messageBodyText)
Sets message body, i.e. main-mime-part of message in textfield |
void |
setEmlMessage(String emlMessage)
Set path to eml message to be sent |
void |
setEnableDebug(boolean selected)
|
void |
setEnforceStartTLS(boolean enforceStartTLS)
Enforces StartTLS to secure the SMTP-connection (checkbox) |
void |
setHeaderFields(CollectionProperty fields)
|
void |
setIncludeTimestamp(boolean includeTimestamp)
Set timestamp to be included in the message-subject (checkbox) |
void |
setMailFrom(String mailFrom)
Sets sender-address of e-mail in textfield |
void |
setMessageSizeStatistic(boolean val)
Set message size to be calculated and included in sample result (checkbox) |
void |
setPassword(String authPassword)
|
void |
setPort(String port)
Sets port of mail-server |
void |
setReceiverBCC(String mailToBCC)
Sets receiver in textfield "bcc" |
void |
setReceiverCC(String mailToCC)
Sets receiver in textfield "cc" |
void |
setReceiverTo(String mailTo)
Sets receiver in textfield "to" |
void |
setServer(String server)
Sets mail-server to be used to send message in textfield |
void |
setSubject(String subject)
Sets subject of the e-mail in textfield |
void |
setTrustAllCerts(boolean trustAllCerts)
Enforces JMeter to trust all certificates, no matter what CA is issuer (checkbox) |
void |
setTrustStoreToUse(String trustStoreToUse)
Set the path to local (pre-installed) truststore to be used to avoid SSL-connection-exceptions |
void |
setUseAuth(boolean selected)
Set whether mail server needs auth. |
void |
setUseEmlMessage(boolean useEmlMessage)
Set the use of an .eml-message instead of the content of message-text area |
void |
setUseLocalTrustStore(boolean useLocalTrustStore)
Set the use of a local (pre-installed) truststore to avoid SSL-connection-exceptions (checkbox) |
void |
setUseNoSecurity(boolean selected)
|
void |
setUsername(String username)
|
void |
setUseSSL(boolean useSSL)
Sets SSL to be used to secure the SMTP-connection (checkbox) |
void |
setUseStartTLS(boolean useStartTLS)
Sets StartTLS to be used to secure the SMTP-connection (checkbox) |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SmtpPanel()
Method Detail |
---|
public String getMailFrom()
public String getReceiverTo()
public String getReceiverCC()
public String getReceiverBCC()
public String getBody()
public void setBody(String messageBodyText)
messageBodyText
- Message bodypublic void setMailFrom(String mailFrom)
mailFrom
- Senderpublic void setReceiverTo(String mailTo)
mailTo
- Receiver "to"public void setReceiverCC(String mailToCC)
mailToCC
- Receiver "cc"public void setReceiverBCC(String mailToBCC)
mailToBCC
- Receiver "bcc"public String getAttachments()
public void setAttachments(String attachments)
attachments
- File to attachpublic String getPort()
public void setPort(String port)
port
- Mail-server portpublic String getServer()
public void setServer(String server)
server
- FQDN or IP of mail-serverpublic String getSubject()
public void setSubject(String subject)
subject
- Subject of e-mailpublic boolean isUseAuth()
public void setUseAuth(boolean selected)
selected
- public boolean isUseSSL()
public void setUseSSL(boolean useSSL)
useSSL
- Use SSL to secure the connectionpublic boolean isUseStartTLS()
public void setUseStartTLS(boolean useStartTLS)
useStartTLS
- Use StartTLS to secure the connectionpublic boolean isEnforceStartTLS()
public void setEnforceStartTLS(boolean enforceStartTLS)
enforceStartTLS
- Enforce the use of StartTLS to secure the connectionisEnforceStartTLS()
public boolean isEnableDebug()
public void setEnableDebug(boolean selected)
public boolean isTrustAllCerts()
public void setTrustAllCerts(boolean trustAllCerts)
trustAllCerts
- Trust all certificatesisTrustAllCerts()
public boolean isUseLocalTrustStore()
public void setUseLocalTrustStore(boolean useLocalTrustStore)
useLocalTrustStore
- Use local keystorepublic String getTrustStoreToUse()
public void setTrustStoreToUse(String trustStoreToUse)
trustStoreToUse
- Path to local truststorepublic boolean isUseEmlMessage()
public void setUseEmlMessage(boolean useEmlMessage)
useEmlMessage
- Use eml messagepublic String getEmlMessage()
public void setEmlMessage(String emlMessage)
emlMessage
- path to eml message to be sentpublic boolean isIncludeTimestamp()
public void setIncludeTimestamp(boolean includeTimestamp)
includeTimestamp
- Should timestamp be included in subject?public boolean isMessageSizeStatistics()
public void setMessageSizeStatistic(boolean val)
val
- Schould message size be calculated?public void setUseNoSecurity(boolean selected)
public String getPassword()
public void setPassword(String authPassword)
public String getUsername()
public void setUsername(String username)
public CollectionProperty getHeaderFields()
public void setHeaderFields(CollectionProperty fields)
public void clear()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |