Class SendmailTest
- java.lang.Object
-
- org.opennms.netmgt.config.mailtransporttest.SendmailTest
-
- All Implemented Interfaces:
java.io.Serializable
public class SendmailTest extends java.lang.Object implements java.io.Serializable
This entity defines the test for sending mail. Attributes are used to derive values of java mail properties, or, they can be specified directly as key value pairs. Attributes will are easier to read but there isn't an attribute for every javamail property possible (some are fairly obscure).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SendmailTest()
SendmailTest(java.lang.Long attemptInterval, java.lang.Boolean debug, java.lang.Boolean useAuthentication, java.lang.Boolean useJmta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addJavamailProperty(java.lang.String name, java.lang.String value)
void
addJavamailProperty(JavamailProperty property)
boolean
equals(java.lang.Object obj)
java.lang.Long
getAttemptInterval()
java.lang.Boolean
getDebug()
java.util.List<JavamailProperty>
getJavamailProperties()
SendmailHost
getSendmailHost()
SendmailMessage
getSendmailMessage()
SendmailProtocol
getSendmailProtocol()
java.lang.Boolean
getUseAuthentication()
java.lang.Boolean
getUseJmta()
java.util.Optional<UserAuth>
getUserAuth()
int
hashCode()
boolean
removeJavamailProperty(JavamailProperty javamailProperty)
void
setAttemptInterval(java.lang.Long attemptInterval)
void
setDebug(java.lang.Boolean debug)
void
setJavamailProperties(java.util.List<JavamailProperty> javamailProperties)
void
setSendmailHost(java.lang.String host, java.lang.Long port)
void
setSendmailHost(SendmailHost sendmailHost)
void
setSendmailMessage(SendmailMessage sendmailMessage)
void
setSendmailProtocol(SendmailProtocol sendmailProtocol)
void
setUseAuthentication(java.lang.Boolean useAuthentication)
void
setUseJmta(java.lang.Boolean useJmta)
void
setUserAuth(java.lang.String username, java.lang.String password)
void
setUserAuth(UserAuth userAuth)
-
-
-
Method Detail
-
getDebug
public java.lang.Boolean getDebug()
-
setDebug
public void setDebug(java.lang.Boolean debug)
-
getUseAuthentication
public java.lang.Boolean getUseAuthentication()
-
setUseAuthentication
public void setUseAuthentication(java.lang.Boolean useAuthentication)
-
getUseJmta
public java.lang.Boolean getUseJmta()
-
setUseJmta
public void setUseJmta(java.lang.Boolean useJmta)
-
getAttemptInterval
public java.lang.Long getAttemptInterval()
-
setAttemptInterval
public void setAttemptInterval(java.lang.Long attemptInterval)
-
getJavamailProperties
public java.util.List<JavamailProperty> getJavamailProperties()
-
setJavamailProperties
public void setJavamailProperties(java.util.List<JavamailProperty> javamailProperties)
-
addJavamailProperty
public void addJavamailProperty(JavamailProperty property)
-
addJavamailProperty
public void addJavamailProperty(java.lang.String name, java.lang.String value)
-
removeJavamailProperty
public boolean removeJavamailProperty(JavamailProperty javamailProperty)
-
getSendmailHost
public SendmailHost getSendmailHost()
-
setSendmailHost
public void setSendmailHost(SendmailHost sendmailHost)
-
setSendmailHost
public void setSendmailHost(java.lang.String host, java.lang.Long port)
-
getSendmailProtocol
public SendmailProtocol getSendmailProtocol()
-
setSendmailProtocol
public void setSendmailProtocol(SendmailProtocol sendmailProtocol)
-
getSendmailMessage
public SendmailMessage getSendmailMessage()
-
setSendmailMessage
public void setSendmailMessage(SendmailMessage sendmailMessage)
-
getUserAuth
public java.util.Optional<UserAuth> getUserAuth()
-
setUserAuth
public void setUserAuth(UserAuth userAuth)
-
setUserAuth
public void setUserAuth(java.lang.String username, java.lang.String password)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-