public class SendmailTest extends Object implements Serializable
Type | Property and Description |
---|---|
Enumeration<JavamailProperty> |
enumerateJavamail
Method enumerateJavamailProperty.
|
Iterator<JavamailProperty> |
iterateJavamail
Method iterateJavamailProperty.
|
Constructor and Description |
---|
SendmailTest() |
SendmailTest(Long attemptInternal,
Boolean debug,
Boolean useAuthentication,
Boolean useJmta) |
Modifier and Type | Method and Description |
---|---|
void |
addJavamailProperty(int index,
JavamailProperty javamailProperty) |
void |
addJavamailProperty(JavamailProperty javamailProperty) |
void |
addJavamailProperty(String name,
String value) |
void |
deleteAttemptInterval() |
void |
deleteDebug() |
void |
deleteUseAuthentication() |
void |
deleteUseJmta() |
Enumeration<JavamailProperty> |
enumerateJavamailProperty()
Method enumerateJavamailProperty.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
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
'm_javamailProperties'.
|
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.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
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 javamailProperty)
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 javamailProperty) |
void |
setJavamailProperty(JavamailProperty[] javamailProperties) |
void |
setJavamailProperty(List<JavamailProperty> javamailProperties)
Sets the value of 'm_javamailProperties' by copying the
given Vector.
|
void |
setJavamailPropertyCollection(List<JavamailProperty> javamailProperties)
Deprecated.
|
void |
setSendmailHost(SendmailHost sendmailHost)
Sets the value of field 'sendmailHost'.
|
void |
setSendmailHost(String host,
Long port) |
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(String username,
String password) |
void |
setUserAuth(UserAuth userAuth)
Sets the value of field 'userAuth'.
|
static SendmailTest |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public Enumeration<JavamailProperty> enumerateJavamailProperty
public Iterator<JavamailProperty> iterateJavamailProperty
public void addJavamailProperty(JavamailProperty javamailProperty) throws IndexOutOfBoundsException
javamailProperty
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addJavamailProperty(int index, JavamailProperty javamailProperty) throws IndexOutOfBoundsException
index
- javamailProperty
- 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 boolean equals(Object obj)
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 int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllJavamailProperty()
public boolean removeJavamailProperty(JavamailProperty javamailProperty)
javamailProperty
- 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 javamailProperty) throws IndexOutOfBoundsException
index
- javamailProperty
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setJavamailProperty(JavamailProperty[] javamailProperties)
javamailProperties
- public void setJavamailProperty(List<JavamailProperty> javamailProperties)
javamailProperties
- the Vector to copy.public void setJavamailPropertyCollection(List<JavamailProperty> javamailProperties)
javamailProperties
- 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.