|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 definitionMethod Detail |
---|
protected POP3XMLReceiver createReceiver()
POP3XMLReceiver
used to read from a mailbox.
POP3XMLReceiver
protected void initializeThread() throws XException
initializeThread
in class ReceiverThreadBase
XException
- if something goes wrongprotected void registerResources(TAManager taManager) throws XException
POP3XMLReceiver
in the
TAManager
.
registerResources
in class ReceiverThreadBase
taManager
- the transaction manager in which the resources shall be
registered
XException
- if something goes wrongprotected java.lang.Object receive() throws XException
ReceiverThreadBase
receive
in class ReceiverThreadBase
null
when no message has
been available
XException
- if something goes wrongReceiverThreadBase.receive()
public java.lang.String getType()
Constants.TYPE_OBJECT
Constants.TYPE_OBJECT
protected java.lang.String getReceiverClassName()
ReceiverThreadBase
getReceiverClassName
in class ReceiverThreadBase
ReceiverThreadBase.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 |