|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectejel.InboxEmailsReader
public class InboxEmailsReader
InboxEmailsReader is class that will help Java application projects check email accounts used to send mass mailing for incoming email messages to update the mailing list. For example, after a mass mailing operation, you have to check SMTP Servers results for undelivered emails to update an email address status so as not to waste time sending further emails that will never reach recipients
| Constructor Summary | |
|---|---|
InboxEmailsReader(EmailAccount account,
java.lang.String exp,
boolean isRegEx,
javax.mail.Flags flags)
Constructs a new InboxEmailsReader object |
|
| Method Summary | |
|---|---|
void |
asyncConnect()
A non blocking connect version to the server. |
void |
asyncIterator()
Asynchronous function that will iterate the email messages in the inbox folder searching for the ones that matches expression member variable search query. |
void |
close()
External code must call this function after a successful connection so as to free system resources |
boolean |
connect()
Blocking function that will try to connect to the server |
EmailAccount |
getEmailAccount()
Gets the EmailAccount object holding login information to the server |
java.lang.Exception |
getException()
Gets an Exception object if failed to connect to server, otherwise null |
java.lang.String |
getSearchExpression()
Gets the search expression used to filter the email messages in the inbox folder |
javax.mail.Flags |
getSearchFlags()
Gets the flags that must be set on a Message object to be included in the search process |
boolean |
isConnected()
Check if the object is now connected to the server |
boolean |
isIterating()
Gets true if a search thread is now running |
boolean |
isNowConnecting()
Gets true if an attempt to connect is now running |
boolean |
isRegularExpression()
Gets true if the exp param passed to the constructor is a regular expression or a contains search query |
java.util.Iterator |
iterator()
|
void |
registerEventListener(EventManager.EventID evtId,
EventListener listener)
Register a listener object that will receive events when they're raised |
void |
unregisterEventListener(EventManager.EventID evtId,
EventListener listener)
Unregister a listener object that will never receive events after the call |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InboxEmailsReader(EmailAccount account,
java.lang.String exp,
boolean isRegEx,
javax.mail.Flags flags)
throws java.lang.IllegalArgumentException
account - The EmailAccount object containing information for logging to the serverexp - The contains or regular expression search query for email messagesisRegEx - Set to true if exp param contains a regular expression, false if it's a contains expressionflags - Set to flags that will be set on the Message object to include it in the search process
java.lang.IllegalArgumentException| Method Detail |
|---|
public void asyncIterator()
registerEventListener()
public void registerEventListener(EventManager.EventID evtId,
EventListener listener)
evtId - The event ID to register forlistener - The listener object to register. It must implement The ejel.EventListener interfaceEventListener
public void unregisterEventListener(EventManager.EventID evtId,
EventListener listener)
evtId - The event ID to unregister fromlistener - The listener object to unregister. It must implement the ejel.EventListener interface to registerEventListenerpublic boolean connect()
public void asyncConnect()
nowConnectingpublic void close()
public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic boolean isIterating()
asyncIterate()public boolean isConnected()
public javax.mail.Flags getSearchFlags()
Flagspublic boolean isRegularExpression()
public java.lang.String getSearchExpression()
public EmailAccount getEmailAccount()
public boolean isNowConnecting()
public java.lang.Exception getException()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||