|
|||||||||||
| 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 |
javax.mail.Store |
getStore()
Returns the Store object used by the Connector. |
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. |
| 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 ConnectorInterfaceinitialize in class ConnectoraObj - 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 ConnectorInterfacegetNextEntry in class Connectorjava.lang.Exception - If retrieving the next Entry fails.ConnectorInterface.selectEntries()public javax.mail.Store getStore()
Store object used by the Connector.
public void messagesAdded(javax.mail.event.MessageCountEvent aMce)
messagesAdded in interface javax.mail.event.MessageCountListeneraMce - MessageCountEventpublic void messagesRemoved(javax.mail.event.MessageCountEvent aMce)
messagesRemoved in interface javax.mail.event.MessageCountListeneraMce - MessageCountEventpublic void selectEntries()
selectEntries in interface ConnectorInterfaceselectEntries in class Connector
public Entry findEntry(SearchCriteria aSearch)
throws java.lang.Exception
findEntry in interface ConnectorInterfacefindEntry in class ConnectoraSearch - 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
classes
public void deleteEntry(Entry aEntry,
SearchCriteria aSearch)
throws java.lang.Exception
deleteEntry in interface ConnectorInterfacedeleteEntry in class ConnectoraEntry - 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
classes
public void terminate()
throws java.lang.Exception
terminate in interface ConnectorInterfaceterminate in class Connectorjava.lang.Exception - if an error occurs.
public void putEntry(Entry entry)
throws java.lang.Exception
putEntry in interface ConnectorInterfaceputEntry in class Connectorentry - 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 ConnectorInterfacemodEntry in class Connectorentry - 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 | ||||||||||