|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageHandler
An interface representing a message handler. A handler handles messages. Implementers should extend AbstractMessageHandler to inherit standard functionality such mail loop detection etc.
All implementations of MessageHandler need a no-arg constructor, as they are instantiated via reflection.
| Method Summary | |
|---|---|
boolean |
handleMessage(javax.mail.Message message)
Perform the specific work of this handler for the given message. |
void |
init(Map params)
Will be called before any messages are to be handled. |
void |
setErrorHandler(MessageErrorHandler errorHandler)
|
| Method Detail |
|---|
void init(Map params)
params - configuration.
boolean handleMessage(javax.mail.Message message)
throws javax.mail.MessagingException
message - the message to check for handling.
javax.mail.MessagingException - if anything went wrong.void setErrorHandler(MessageErrorHandler errorHandler)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||