|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.Dictionary
java.util.Hashtable
oracle.panama.messaging.common.EmailSetting
This class allows developers to create EmailSetting object which is used send email settings as SmartMessage(Supported by Nokia phones). A typical email-setting looks like:
Mname: Company_access Muid: Username Mpwd: secretpw Madr: Username@serv.provid.net Mrcv: imparserver.provid.net Msnd: smtpserver.provid.net Mpro: IM
To create a EmailSetting object with the above content the
Eg: EmailSetting esetting = new EmailSetting(); // do required set operations esetting.setMailIAPName("Company_access"); esetting.setUsername("Username"); .. .. //set the email setting as Message content Message msg = new Message(); msg.setContent(esetting); message.setContentType(ContentTypes.EMAIL_SETTING);
Field Summary | |
static java.lang.String |
COLON Separator between key and value for Email setting. |
static int |
DEST_PORT Destination NBS port for email setting. |
static java.lang.String |
IMAP Defines IMAP mail protocol. |
static java.lang.String |
LINEFEED Separator between key-value pairs. |
static java.lang.String |
MAILIAP Key for Mail IAP Name. |
static java.lang.String |
MAILINGADDRESSING Key for Mailing address. |
static java.lang.String |
MAILPASSWORD Key for Mail password. |
static java.lang.String |
MAILPROTOCOL Key for Mail protocol. |
static java.lang.String |
MAILRECIEVINGHOST Key for Receiving host. |
static java.lang.String |
MAILSENDINGHOST Key for Sending host. |
static java.lang.String |
MAILUSERID Key for Mail username. |
static java.lang.String |
MIME Email Setting MIME type. |
static int |
ORG_PORT Origin NBS port for email setting. |
static java.lang.String |
PHONE_MODEL Key for Phone model. |
static java.lang.String |
POP3 Defines POP3 mail protocol. |
Constructor Summary | |
EmailSetting() |
Method Summary | |
void |
setEmailAdd(java.lang.String emailAdd) Set the user's email address. |
void |
setMailIAPName(java.lang.String iap) Set the IAP (interner access point). |
void |
setPassword(java.lang.String password) Set the remote mailbox password. |
void |
setPhoneModel(java.lang.String model) Set the phone model. |
void |
setProtocol(java.lang.String protocol) Set the protocol of the receiving host. |
void |
setReceivingHost(java.lang.String recvHost) Set the host name of the IMAP/POP server. |
void |
setSendingHost(java.lang.String sendHost) Set the host name of the SMTP server. |
void |
setUsername(java.lang.String username) Set the remote mailbox username. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COLON
public static final int DEST_PORT
public static final java.lang.String IMAP
public static final java.lang.String LINEFEED
public static final java.lang.String MAILIAP
public static final java.lang.String MAILINGADDRESSING
public static final java.lang.String MAILPASSWORD
public static final java.lang.String MAILPROTOCOL
public static final java.lang.String MAILRECIEVINGHOST
public static final java.lang.String MAILSENDINGHOST
public static final java.lang.String MAILUSERID
public static final java.lang.String MIME
public static final int ORG_PORT
public static final java.lang.String PHONE_MODEL
public static final java.lang.String POP3
Constructor Detail |
public EmailSetting()
Method Detail |
public void setEmailAdd(java.lang.String emailAdd)
emailAdd
- any character except a linefeed. Maximum length 100.public void setMailIAPName(java.lang.String iap)
iap
- : A String with the IAP Name, cannot be a linefeed. The maximum length is 50.public void setPassword(java.lang.String password)
password
- any character except a linefeed. Maximum length 50.public void setPhoneModel(java.lang.String model)
public void setProtocol(java.lang.String protocol)
protocol
- IM for IMAP or PO for POP3public void setReceivingHost(java.lang.String recvHost)
public void setSendingHost(java.lang.String sendHost)
public void setUsername(java.lang.String username)
username
- any character except a linefeed. Maximum length 50.
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |