|
|||||||||||
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()
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 |
modEntry(Entry entry,
SearchCriteria search,
Entry old)
Modifies an existing entry. |
void |
putEntry(Entry entry)
Adds a new entry to the data source |
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, pushback, 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.ConnectorInterface.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
- -
neverpublic 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
- if an error occurs.public void putEntry(Entry entry) throws Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- The entry data to add
Exception
- Any exceptions thrown when trying to add entry in update
mode or when the appending of the message fails.public void modEntry(Entry entry, SearchCriteria search, Entry old) throws Exception
modEntry
in interface ConnectorInterface
modEntry
in class Connector
entry
- The entry datasearch
- The search criteria used to locate the entry to be modifiedold
- The old entry found by the search criteria
Exception
- Any exceptions thrown when updating the flags of a messagepublic String getVersion()
getVersion
in interface VersionInfoInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |