|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.MailboxConnector
public class MailboxConnector
Simple access to POP/IMAP based mailboxes.
Field Summary |
---|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
MailboxConnector()
Constructor for the MailboxConnector object |
Method Summary | |
---|---|
void |
deleteEntry(Entry aEntry,
SearchCriteria aSearch)
Deletes an existing entry. |
Entry |
findEntry(SearchCriteria aSearch)
Finds an existing entry. |
Entry |
getNextEntry()
Gets the next message from an open MailboxConnector object |
String |
getVersion()
Return version information |
void |
initialize(Object aObj)
Reads connector parameter's values and initialize the Connector. |
void |
messagesAdded(javax.mail.event.MessageCountEvent aMce)
Gets notification for added message |
void |
messagesRemoved(javax.mail.event.MessageCountEvent aMce)
Gets notification for removed message |
void |
selectEntries()
Prepare the Connector for sequential read |
void |
terminate()
Terminate the connector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
---|
getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, putEntry, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
Constructor Detail |
---|
public MailboxConnector()
Method Detail |
---|
public void initialize(Object aObj) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObj
- Null, Socket or ConnectorMode class
Exception
- If invalid Connector parameter values are supplied.public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- If retrieving the next Entry fails.Connector.selectEntries()
public void messagesAdded(javax.mail.event.MessageCountEvent aMce)
messagesAdded
in interface javax.mail.event.MessageCountListener
aMce
- MessageCountEventpublic void messagesRemoved(javax.mail.event.MessageCountEvent aMce)
messagesRemoved
in interface javax.mail.event.MessageCountListener
aMce
- MessageCountEventpublic void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
public Entry findEntry(SearchCriteria aSearch) throws Exception
findEntry
in interface ConnectorInterface
findEntry
in class Connector
aSearch
- The search criteria used to locate the entry to be
modified, search criteria can be /mail.messagenumber,
mail.from, mail.to, mail.cc, mail.subject, mail.messageid
Exception
- Any exceptions thrown by the connector's underlying
classespublic void deleteEntry(Entry aEntry, SearchCriteria aSearch) throws Exception
deleteEntry
in interface ConnectorInterface
deleteEntry
in class Connector
aEntry
- The entry dataaSearch
- The search criteria used to locate the entry to be deleted
Exception
- Any exceptions thrown by the connector's underlying
classespublic void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
public String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |