|
||||||||||
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 |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.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. This function closes all connection and releases all resources used by the connector. This function also calls the parser's closeParser() method if a parser is active. |
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(java.lang.Object aObj) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObj
- Null, Socket or ConnectorMode class
java.lang.Exception
- If invalid Connector parameter values are supplied.public Entry getNextEntry() throws java.lang.Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
java.lang.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 java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
java.lang.Exception
- -
neverpublic Entry findEntry(SearchCriteria aSearch) throws java.lang.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
java.lang.Exception
- Any exceptions thrown by the connector's underlying
classespublic void deleteEntry(Entry aEntry, SearchCriteria aSearch) throws java.lang.Exception
deleteEntry
in interface ConnectorInterface
deleteEntry
in class Connector
aEntry
- The entry dataaSearch
- The search criteria used to locate the entry to be deleted
java.lang.Exception
- Any exceptions thrown by the connector's underlying
classespublic void terminate() throws java.lang.Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
java.lang.Exception
- if an error occurs.public void putEntry(Entry entry) throws java.lang.Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- The entry data to add
java.lang.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 java.lang.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
java.lang.Exception
- Any exceptions thrown when updating the flags of a messagepublic java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |