|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.model.filters.RemoteSender
Sends messages from the outgoing filter stack to an SMTPServer.
| Field Summary | |
protected boolean |
done
Whether the sender thread should stop because the email system is being shut down. |
protected SenderFilterListener[] |
listeners
Holds all the classes listening to events from this class. |
protected java.util.List |
messages
Contains outgoing messages that need to be sent. |
protected java.lang.Thread |
sender
The thread responsible for sending messages from the queue. |
| Constructor Summary | |
RemoteSender(TransportToolkit tm,
Settings settings,
java.lang.String param)
Constructs new SMTP sender. |
|
| Method Summary | |
void |
addFilterListener(SenderFilterListener l)
|
void |
filterActivated(TALMailEvent ev)
This method is called when we have filtered/dropped a message. |
void |
initialize()
Called to initialize the feature. |
void |
release()
blocks until the sender thread has sent all messages. |
boolean |
reload()
Reloads the queue with unsent messages from the mailbox. |
void |
run()
Periodically checks for outgoing mail from the messages vector and sends out the outgoing mail through JavaMail Transport object. |
void |
sendingMail(TALMailEvent ev)
This method is used by other components to let us know that a message in needs to be sent. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected SenderFilterListener[] listeners
protected java.util.List messages
protected java.lang.Thread sender
protected boolean done
| Constructor Detail |
public RemoteSender(TransportToolkit tm,
Settings settings,
java.lang.String param)
| name | value |
|---|---|
| service | "smtp" |
| host | The computer hosting the SMTP service. |
| user | The username for the SMTP account. |
| password | The password for the SMTP account |
| Method Detail |
public void initialize()
DelayedFeature
initialize in interface DelayedFeaturepublic void sendingMail(TALMailEvent ev)
sendingMail in interface SenderFilterListenerev - The event object containing message to be sent.public void filterActivated(TALMailEvent ev)
SenderFilterListener
filterActivated in interface SenderFilterListenerpublic void addFilterListener(SenderFilterListener l)
addFilterListener in interface SenderFilterpublic boolean reload()
public void run()
run in interface java.lang.Runnablepublic void release()
release in interface TALFeaturepublic java.lang.String toString()
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.