|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.ReceiverThreadBase
net.sf.xbus.technical.mail.POP3XMLReceiverThread
public class POP3XMLReceiverThread
The POP3XMLReceiverThread runs in the background and receives
emails.
| Field Summary |
|---|
| Fields inherited from class net.sf.xbus.technical.ReceiverThreadBase |
|---|
DEFAULT_ERROR_TIMEOUT, DEFAULT_TIMEOUT |
| Constructor Summary | |
|---|---|
POP3XMLReceiverThread(XBUSSystem source)
Stores the interface name |
|
| Method Summary | |
|---|---|
protected POP3XMLReceiver |
createReceiver()
Creates an instance of POP3XMLReceiver
used to read from a mailbox. |
protected java.lang.String |
getAddress()
Returns a concatenation of the mailbox name and the server name. |
protected java.lang.String |
getReceiverClassName()
Returns the name of the receiver class, used for example to determine values in the configuration. |
java.lang.String |
getType()
Returns Constants.TYPE_OBJECT |
protected void |
initializeThread()
Opens the connection to the POP3 server. |
protected java.lang.Object |
receive()
Receives one message. |
protected void |
registerResources(TAManager taManager)
Registers the POP3XMLReceiver in the
TAManager. |
| Methods inherited from class net.sf.xbus.technical.ReceiverThreadBase |
|---|
checkProceed, getErrorTimeout, getSource, getTimeout, incrementErrorCounter, initializeErrorCounter, interruptThread, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public POP3XMLReceiverThread(XBUSSystem source)
source - name of the interface definition| Method Detail |
|---|
protected POP3XMLReceiver createReceiver()
POP3XMLReceiver
used to read from a mailbox.
POP3XMLReceiver
protected void initializeThread()
throws XException
initializeThread in class ReceiverThreadBaseXException - if something goes wrong
protected void registerResources(TAManager taManager)
throws XException
POP3XMLReceiver in the
TAManager.
registerResources in class ReceiverThreadBasetaManager - the transaction manager in which the resources shall be
registered
XException - if something goes wrong
protected java.lang.Object receive()
throws XException
ReceiverThreadBase
receive in class ReceiverThreadBasenull when no message has
been available
XException - if something goes wrongReceiverThreadBase.receive()public java.lang.String getType()
Constants.TYPE_OBJECT
Constants.TYPE_OBJECTprotected java.lang.String getReceiverClassName()
ReceiverThreadBase
getReceiverClassName in class ReceiverThreadBaseReceiverThreadBase.getReceiverClassName()protected java.lang.String getAddress()
getAddress in class ReceiverThreadBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||