public class SendmailConfig extends Object implements Serializable
Type | Property and Description |
---|---|
Enumeration<JavamailProperty> |
enumerateJavamail
Method enumerateJavamailProperty.
|
Iterator<JavamailProperty> |
iterateJavamail
Method iterateJavamailProperty.
|
Constructor and Description |
---|
SendmailConfig()
Instantiates a new sendmail configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addJavamailProperty(int index,
JavamailProperty vJavamailProperty)
Adds the javamail property.
|
void |
addJavamailProperty(JavamailProperty vJavamailProperty)
Adds the javamail property.
|
Enumeration<JavamailProperty> |
enumerateJavamailProperty()
Method enumerateJavamailProperty.
|
boolean |
equals(Object obj) |
Long |
getAttemptInterval()
Returns the value of field 'attemptInterval'.
|
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.
|
String |
getName()
Returns the value of field 'name'.
|
SendmailHost |
getSendmailHost()
Returns the value of field 'sendmailHost'.
|
SendmailMessage |
getSendmailMessage()
Returns the value of field 'sendmailMessage'.
|
SendmailProtocol |
getSendmailProtocol()
Returns the value of field 'sendmailProtocol'.
|
UserAuth |
getUserAuth()
Returns the value of field 'userAuth'.
|
int |
hashCode() |
Boolean |
isDebug()
Returns the value of field 'debug'.
|
Boolean |
isUseAuthentication()
Returns the value of field 'useAuthentication'.
|
Boolean |
isUseJmta()
Returns the value of field 'useJmta'.
|
Iterator<JavamailProperty> |
iterateJavamailProperty()
Method iterateJavamailProperty.
|
void |
removeAllJavamailProperty()
Removes the all javamail property.
|
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)
Sets the javamail property.
|
void |
setJavamailProperty(JavamailProperty[] vJavamailPropertyArray)
Sets the javamail property.
|
void |
setJavamailProperty(List<JavamailProperty> vJavamailPropertyList)
Sets the value of '_javamailPropertyList' by copying the given Vector.
|
void |
setJavamailPropertyCollection(List<JavamailProperty> javamailPropertyList)
Deprecated.
|
void |
setName(String name)
Sets the value of field 'name'.
|
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'.
|
public Enumeration<JavamailProperty> enumerateJavamailProperty
public Iterator<JavamailProperty> iterateJavamailProperty
public SendmailConfig()
public void addJavamailProperty(JavamailProperty vJavamailProperty) throws IndexOutOfBoundsException
vJavamailProperty
- the javamail propertyIndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addJavamailProperty(int index, JavamailProperty vJavamailProperty) throws IndexOutOfBoundsException
index
- the indexvJavamailProperty
- the javamail propertyIndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<JavamailProperty> enumerateJavamailProperty()
public Long getAttemptInterval()
public Boolean isDebug()
public JavamailProperty getJavamailProperty(int index) throws IndexOutOfBoundsException
index
- the indexIndexOutOfBoundsException
- 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 getName()
public SendmailHost getSendmailHost()
public SendmailMessage getSendmailMessage()
public SendmailProtocol getSendmailProtocol()
public Boolean isUseAuthentication()
public Boolean isUseJmta()
public UserAuth getUserAuth()
public Iterator<JavamailProperty> iterateJavamailProperty()
public void removeAllJavamailProperty()
public boolean removeJavamailProperty(JavamailProperty vJavamailProperty)
vJavamailProperty
- the javamail propertypublic JavamailProperty removeJavamailPropertyAt(int index)
index
- the indexpublic 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
- the indexvJavamailProperty
- the avamail propertyIndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setJavamailProperty(JavamailProperty[] vJavamailPropertyArray)
vJavamailPropertyArray
- the new javamail propertypublic void setJavamailProperty(List<JavamailProperty> vJavamailPropertyList)
vJavamailPropertyList
- the Vector to copy.public void setJavamailPropertyCollection(List<JavamailProperty> javamailPropertyList)
javamailPropertyList
- the Vector to set.public void setName(String name)
name
- the value of field 'name'.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'.Copyright © 2017. All rights reserved.