Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common
Class EmailSetting

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byoracle.panama.messaging.common.EmailSetting

All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class EmailSetting
extends java.util.Hashtable

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);
   
See Also:
Serialized Form

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

COLON

public static final java.lang.String COLON
Separator between key and value for Email setting.
See Also:
Constant Field Values

DEST_PORT

public static final int DEST_PORT
Destination NBS port for email setting.
See Also:
Constant Field Values

IMAP

public static final java.lang.String IMAP
Defines IMAP mail protocol.
See Also:
Constant Field Values

LINEFEED

public static final java.lang.String LINEFEED
Separator between key-value pairs.
See Also:
Constant Field Values

MAILIAP

public static final java.lang.String MAILIAP
Key for Mail IAP Name.
See Also:
Constant Field Values

MAILINGADDRESSING

public static final java.lang.String MAILINGADDRESSING
Key for Mailing address.
See Also:
Constant Field Values

MAILPASSWORD

public static final java.lang.String MAILPASSWORD
Key for Mail password.
See Also:
Constant Field Values

MAILPROTOCOL

public static final java.lang.String MAILPROTOCOL
Key for Mail protocol.
See Also:
Constant Field Values

MAILRECIEVINGHOST

public static final java.lang.String MAILRECIEVINGHOST
Key for Receiving host.
See Also:
Constant Field Values

MAILSENDINGHOST

public static final java.lang.String MAILSENDINGHOST
Key for Sending host.
See Also:
Constant Field Values

MAILUSERID

public static final java.lang.String MAILUSERID
Key for Mail username.
See Also:
Constant Field Values

MIME

public static final java.lang.String MIME
Email Setting MIME type.
See Also:
Constant Field Values

ORG_PORT

public static final int ORG_PORT
Origin NBS port for email setting.
See Also:
Constant Field Values

PHONE_MODEL

public static final java.lang.String PHONE_MODEL
Key for Phone model.
See Also:
Constant Field Values

POP3

public static final java.lang.String POP3
Defines POP3 mail protocol.
See Also:
Constant Field Values

Constructor Detail

EmailSetting

public EmailSetting()

Method Detail

setEmailAdd

public void setEmailAdd(java.lang.String emailAdd)
Set the user's email address.
Parameters:
emailAdd - any character except a linefeed. Maximum length 100.

setMailIAPName

public void setMailIAPName(java.lang.String iap)
Set the IAP (interner access point).
Parameters:
iap - : A String with the IAP Name, cannot be a linefeed. The maximum length is 50.

setPassword

public void setPassword(java.lang.String password)
Set the remote mailbox password.
Parameters:
password - any character except a linefeed. Maximum length 50.

setPhoneModel

public void setPhoneModel(java.lang.String model)
Set the phone model. The phone model should be of the format: "band type", for example: "Nokia 6210", "Ericsson T68i". It is case insensitive.

setProtocol

public void setProtocol(java.lang.String protocol)
Set the protocol of the receiving host. Use fields IMAP and POP3 to set the values.
Parameters:
protocol - IM for IMAP or PO for POP3

setReceivingHost

public void setReceivingHost(java.lang.String recvHost)
Set the host name of the IMAP/POP server.

setSendingHost

public void setSendingHost(java.lang.String sendHost)
Set the host name of the SMTP server.

setUsername

public void setUsername(java.lang.String username)
Set the remote mailbox username.
Parameters:
username - any character except a linefeed. Maximum length 50.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.