oracle.panama.messaging.push
Class EmailAddressData
java.lang.Object
|
+--oracle.panama.messaging.push.AddressData
|
+--oracle.panama.messaging.push.EmailAddressData
- All Implemented Interfaces:
- java.lang.Cloneable
- public class EmailAddressData
- extends AddressData
Email address class.
Email address has an email specific attribute: mode. Predefined modes are:
'to','cc' and 'bcc'. Mode is required for recipients.
For sender and reply to address, mode is not required and will be ignored.
Note:
Never access any public data fields inside this class directly, because they are for
internal use in this release and will be changed in coming releases. Always use public
methods of this class.
Type | Method |
java.lang.String |
getAddressType()
"email" is returned to indicate that it's an email address. |
java.lang.String |
getMode()
get the mode |
void |
setMode(java.lang.String mode)
Sets the mode of address. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mode
public java.lang.String mode
addressType
public java.lang.String addressType
EmailAddressData
public EmailAddressData()
- Constructor
EmailAddressData
public EmailAddressData(java.lang.String addr)
- Constructor
- Parameters:
addr
- Email address
EmailAddressData
public EmailAddressData(java.lang.String addr,
java.lang.String mode)
- Constructor
- Parameters:
addr
- Email addressmode
- mode could be "to","cc","bcc". All other strings are
considered as "" (none). (none) is the sender's mode.
getAddressType
public java.lang.String getAddressType()
- "email" is returned to indicate that it's an email address.
- Overrides:
getAddressType
in class AddressData
setMode
public void setMode(java.lang.String mode)
- Sets the mode of address. The mode could be "to","cc","bcc" or "" (none).
getMode
public java.lang.String getMode()
- get the mode
toString
public java.lang.String toString()
- Overrides:
toString
in class AddressData