| |
|
| java.lang.Object nextapp.echo2.app.ApplicationInstance echo2example.email.EmailApp
Method Summary | |
public boolean | connect(String emailAddress, String password) Connects to the mail server with the given e-mail address and
password. | public void | disconnect() Disconnects the session with the mail server and displays
the authentication screen. | public static EmailApp | getApp() Convenience method to return the active email application as a
EmailApp . | public String | getEmailAddress() Returns the email address of the active user, or null if none. | public Session | getMailSession() Returns the active JavaMail Session object. | public Window | init() | public void | processFatalException(Exception ex) Handles a fatal exception.
This method is invoked when a component of the application
encounters a fatal error that can not be resolved. |
FAUX_MODE | final public static boolean FAUX_MODE(Code) | | Flag indicating whether we should use fake e-mail data. Enabling this
flag will cause the FauxStore e-mail store to be used and
will disable sending of messages.
|
MAIL_DOMAINRECEIVE_MAIL_SERVERRECEIVE_PROTOCOLSEND_MAIL_SERVERSEND_MAIL_PORT | final public static String MAIL_DOMAINRECEIVE_MAIL_SERVERRECEIVE_PROTOCOLSEND_MAIL_SERVERSEND_MAIL_PORT(Code) | | |
MESSAGES_PER_PAGE | final public static int MESSAGES_PER_PAGE(Code) | | |
connect | public boolean connect(String emailAddress, String password)(Code) | | Connects to the mail server with the given e-mail address and
password. Displays the MailScreen on success.
Parameters: emailAddress - e-mail address Parameters: password - the password true if the application was able to connect to theserver using the specified information, false if not. |
disconnect | public void disconnect()(Code) | | Disconnects the session with the mail server and displays
the authentication screen.
|
getApp | public static EmailApp getApp()(Code) | | Convenience method to return the active email application as a
EmailApp .
the active EmailApp |
getEmailAddress | public String getEmailAddress()(Code) | | Returns the email address of the active user, or null if none.
the email address |
getMailSession | public Session getMailSession()(Code) | | Returns the active JavaMail Session object.
the Session |
processFatalException | public void processFatalException(Exception ex)(Code) | | Handles a fatal exception.
This method is invoked when a component of the application
encounters a fatal error that can not be resolved. This
method will log off any currently logged in user and
display an error dialog screen.
Parameters: ex - the fatal exception |
|
|
|