|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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.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 |
getMailReplyTo()
|
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 |
SecuritySettingsPanel |
getSecuritySettingsPanel()
|
String |
getServer()
Returns mail-server to be used to send message (from textfield) |
String |
getSubject()
Returns subject of the e-mail from textfield |
String |
getUsername()
|
boolean |
isEnableDebug()
|
boolean |
isIncludeTimestamp()
Returns if current timestamp is included in the subject (checkbox) |
boolean |
isMessageSizeStatistics()
Returns if message size statistics are processed. |
boolean |
isPlainBody()
Returns true if message body should be plain (i.e. not multipart/mixed) |
boolean |
isSuppressSubject()
Returns true if subject header should be suppressed |
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 |
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 |
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 |
setMailReplyTo(String replyTo)
|
void |
setMessageSizeStatistic(boolean val)
Set message size to be calculated and included in sample result (checkbox) |
void |
setPassword(String authPassword)
|
void |
setPlainBody(boolean plainBody)
Sets the property that defines if the body should be plain (i.e. not multipart/mixed) |
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 |
setSecuritySettingsPanel(SecuritySettingsPanel securitySettingsPanel)
|
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 |
setSuppressSubject(boolean emptySubject)
Sets the property that defines if the subject header should be suppressed |
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 |
setUsername(String username)
|
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 isSuppressSubject()
public void setSuppressSubject(boolean emptySubject)
emptySubject
- public boolean isPlainBody()
public void setPlainBody(boolean plainBody)
plainBody
- whether to use a plain body (i.e. not multipart/mixed)public boolean isUseAuth()
public void setUseAuth(boolean selected)
selected
- public boolean isEnableDebug()
public void setEnableDebug(boolean selected)
public 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 String getPassword()
public void setPassword(String authPassword)
public String getUsername()
public void setUsername(String username)
public CollectionProperty getHeaderFields()
public void setHeaderFields(CollectionProperty fields)
public String getMailReplyTo()
public void setMailReplyTo(String replyTo)
public void clear()
public SecuritySettingsPanel getSecuritySettingsPanel()
public void setSecuritySettingsPanel(SecuritySettingsPanel securitySettingsPanel)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |