public class ReadmailTest extends Object implements Serializable
Type | Property and Description |
---|---|
Enumeration<JavamailProperty> |
enumerateJavamail
Method enumerateJavamailProperty.
|
Iterator<JavamailProperty> |
iterateJavamail
Method iterateJavamailProperty.
|
Constructor and Description |
---|
ReadmailTest() |
ReadmailTest(Long attemptInterval,
Boolean debug,
String mailFolder,
String subjectMatch,
Boolean deleteAllMail) |
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 |
deleteDeleteAllMail() |
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'.
|
Boolean |
getDeleteAllMail()
Returns the value of field 'deleteAllMail'.
|
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.
|
String |
getMailFolder()
Returns the value of field 'mailFolder'.
|
ReadmailHost |
getReadmailHost()
Returns the value of field 'readmailHost'.
|
String |
getSubjectMatch()
Returns the value of field 'subjectMatch'.
|
UserAuth |
getUserAuth()
Returns the value of field 'userAuth'.
|
boolean |
hasAttemptInterval()
Method hasAttemptInterval.
|
boolean |
hasDebug()
Method hasDebug.
|
boolean |
hasDeleteAllMail()
Method hasDeleteAllMail.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
boolean |
isDebug()
Returns the value of field 'debug'.
|
boolean |
isDeleteAllMail()
Returns the value of field 'deleteAllMail'.
|
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 |
setDeleteAllMail(Boolean deleteAllMail)
Sets the value of field 'deleteAllMail'.
|
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 |
setMailFolder(String mailFolder)
Sets the value of field 'mailFolder'.
|
void |
setReadmailHost(ReadmailHost readmailHost)
Sets the value of field 'readmailHost'.
|
void |
setSubjectMatch(String subjectMatch)
Sets the value of field 'subjectMatch'.
|
void |
setUserAuth(String username,
String password) |
void |
setUserAuth(UserAuth userAuth)
Sets the value of field 'userAuth'.
|
static ReadmailTest |
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 deleteDeleteAllMail()
public Enumeration<JavamailProperty> enumerateJavamailProperty()
public boolean equals(Object obj)
public Long getAttemptInterval()
public Boolean getDebug()
public Boolean getDeleteAllMail()
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 String getMailFolder()
public ReadmailHost getReadmailHost()
public String getSubjectMatch()
public UserAuth getUserAuth()
public boolean hasAttemptInterval()
public boolean hasDebug()
public boolean hasDeleteAllMail()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isDebug()
public boolean isDeleteAllMail()
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 setDeleteAllMail(Boolean deleteAllMail)
deleteAllMail
- the value of field 'deleteAllMail'.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 setMailFolder(String mailFolder)
mailFolder
- the value of field 'mailFolder'.public void setReadmailHost(ReadmailHost readmailHost)
readmailHost
- the value of field 'readmailHost'.public void setSubjectMatch(String subjectMatch)
subjectMatch
- the value of field 'subjectMatch'.public void setUserAuth(UserAuth userAuth)
userAuth
- the value of field 'userAuth'.public static ReadmailTest 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.