|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.mailtransporttest.SendmailTest
public class SendmailTest
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).
| Constructor Summary | |
|---|---|
SendmailTest()
|
|
| Method Summary | |
|---|---|
void |
addJavamailProperty(int index,
JavamailProperty vJavamailProperty)
|
void |
addJavamailProperty(JavamailProperty vJavamailProperty)
|
void |
deleteAttemptInterval()
|
void |
deleteDebug()
|
void |
deleteUseAuthentication()
|
void |
deleteUseJmta()
|
Enumeration<JavamailProperty> |
enumerateJavamailProperty()
Method enumerateJavamailProperty. |
long |
getAttemptInterval()
Returns the value of field 'attemptInterval'. |
boolean |
getDebug()
Returns the value of field 'debug'. |
JavamailProperty[] |
getJavamailProperty()
Method getJavamailProperty.Returns the contents of the collection in an Array. |
JavamailProperty |
getJavamailProperty(int index)
Method getJavamailProperty. |
List<JavamailProperty> |
getJavamailPropertyCollection()
Method getJavamailPropertyCollection.Returns a reference to '_javamailPropertyList'. |
int |
getJavamailPropertyCount()
Method getJavamailPropertyCount. |
SendmailHost |
getSendmailHost()
Returns the value of field 'sendmailHost'. |
SendmailMessage |
getSendmailMessage()
Returns the value of field 'sendmailMessage'. |
SendmailProtocol |
getSendmailProtocol()
Returns the value of field 'sendmailProtocol'. |
boolean |
getUseAuthentication()
Returns the value of field 'useAuthentication'. |
boolean |
getUseJmta()
Returns the value of field 'useJmta'. |
UserAuth |
getUserAuth()
Returns the value of field 'userAuth'. |
boolean |
hasAttemptInterval()
Method hasAttemptInterval. |
boolean |
hasDebug()
Method hasDebug. |
boolean |
hasUseAuthentication()
Method hasUseAuthentication. |
boolean |
hasUseJmta()
Method hasUseJmta. |
boolean |
isDebug()
Returns the value of field 'debug'. |
boolean |
isUseAuthentication()
Returns the value of field 'useAuthentication'. |
boolean |
isUseJmta()
Returns the value of field 'useJmta'. |
boolean |
isValid()
Method isValid. |
Iterator<JavamailProperty> |
iterateJavamailProperty()
Method iterateJavamailProperty. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllJavamailProperty()
|
boolean |
removeJavamailProperty(JavamailProperty vJavamailProperty)
Method removeJavamailProperty. |
JavamailProperty |
removeJavamailPropertyAt(int index)
Method removeJavamailPropertyAt. |
void |
setAttemptInterval(long attemptInterval)
Sets the value of field 'attemptInterval'. |
void |
setDebug(boolean debug)
Sets the value of field 'debug'. |
void |
setJavamailProperty(int index,
JavamailProperty vJavamailProperty)
|
void |
setJavamailProperty(JavamailProperty[] vJavamailPropertyArray)
|
void |
setJavamailProperty(List<JavamailProperty> vJavamailPropertyList)
Sets the value of '_javamailPropertyList' by copying the given Vector. |
void |
setJavamailPropertyCollection(List<JavamailProperty> javamailPropertyList)
Deprecated. |
void |
setSendmailHost(SendmailHost sendmailHost)
Sets the value of field 'sendmailHost'. |
void |
setSendmailMessage(SendmailMessage sendmailMessage)
Sets the value of field 'sendmailMessage'. |
void |
setSendmailProtocol(SendmailProtocol sendmailProtocol)
Sets the value of field 'sendmailProtocol'. |
void |
setUseAuthentication(boolean useAuthentication)
Sets the value of field 'useAuthentication'. |
void |
setUseJmta(boolean useJmta)
Sets the value of field 'useJmta'. |
void |
setUserAuth(UserAuth userAuth)
Sets the value of field 'userAuth'. |
static SendmailTest |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SendmailTest()
| Method Detail |
|---|
public void addJavamailProperty(JavamailProperty vJavamailProperty)
throws IndexOutOfBoundsException
vJavamailProperty -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addJavamailProperty(int index,
JavamailProperty vJavamailProperty)
throws IndexOutOfBoundsException
index - vJavamailProperty -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void deleteAttemptInterval()
public void deleteDebug()
public void deleteUseAuthentication()
public void deleteUseJmta()
public Enumeration<JavamailProperty> enumerateJavamailProperty()
public long getAttemptInterval()
public boolean getDebug()
public JavamailProperty getJavamailProperty(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic JavamailProperty[] getJavamailProperty()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<JavamailProperty> getJavamailPropertyCollection()
public int getJavamailPropertyCount()
public SendmailHost getSendmailHost()
public SendmailMessage getSendmailMessage()
public SendmailProtocol getSendmailProtocol()
public boolean getUseAuthentication()
public boolean getUseJmta()
public UserAuth getUserAuth()
public boolean hasAttemptInterval()
public boolean hasDebug()
public boolean hasUseAuthentication()
public boolean hasUseJmta()
public boolean isDebug()
public boolean isUseAuthentication()
public boolean isUseJmta()
public boolean isValid()
public Iterator<JavamailProperty> iterateJavamailProperty()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllJavamailProperty()
public boolean removeJavamailProperty(JavamailProperty vJavamailProperty)
vJavamailProperty -
public JavamailProperty removeJavamailPropertyAt(int index)
index -
public void setAttemptInterval(long attemptInterval)
attemptInterval - the value of field 'attemptInterval'.public void setDebug(boolean debug)
debug - the value of field 'debug'.
public void setJavamailProperty(int index,
JavamailProperty vJavamailProperty)
throws IndexOutOfBoundsException
index - vJavamailProperty -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setJavamailProperty(JavamailProperty[] vJavamailPropertyArray)
vJavamailPropertyArray - public void setJavamailProperty(List<JavamailProperty> vJavamailPropertyList)
vJavamailPropertyList - the Vector to copy.public void setJavamailPropertyCollection(List<JavamailProperty> javamailPropertyList)
javamailPropertyList - the Vector to set.public void setSendmailHost(SendmailHost sendmailHost)
sendmailHost - the value of field 'sendmailHost'.public void setSendmailMessage(SendmailMessage sendmailMessage)
sendmailMessage - the value of field 'sendmailMessage'.public void setSendmailProtocol(SendmailProtocol sendmailProtocol)
sendmailProtocol - the value of field 'sendmailProtocol'public void setUseAuthentication(boolean useAuthentication)
useAuthentication - the value of field
'useAuthentication'.public void setUseJmta(boolean useJmta)
useJmta - the value of field 'useJmta'.public void setUserAuth(UserAuth userAuth)
userAuth - the value of field 'userAuth'.
public static SendmailTest unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||