|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jsieve.mailet.ActionDispatcher
public class ActionDispatcher
Dynamically dispatches an Action depending on the type of Action received at runtime.
An instance maybe safe accessed concurrently by multiple threads.
Constructor Summary | |
---|---|
ActionDispatcher()
Constructor for ActionDispatcher. |
Method Summary | |
---|---|
void |
execute(Action anAction,
org.apache.mailet.Mail aMail,
ActionContext context)
Method execute executes the passed Action by invoking the method mapped by the receiver with a parameter of the EXACT type of Action. |
java.util.concurrent.ConcurrentMap<java.lang.Class,MailAction> |
getMethodMap()
Returns the methodMap. |
protected void |
setMethodMap(java.util.concurrent.ConcurrentMap<java.lang.Class,MailAction> mailActionMap)
Sets the mail action mail. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionDispatcher() throws javax.mail.MessagingException
java.lang.NoSuchMethodException
javax.mail.MessagingException
Method Detail |
---|
public void execute(Action anAction, org.apache.mailet.Mail aMail, ActionContext context) throws javax.mail.MessagingException
anAction
- not nullaMail
- not nullcontext
- not null
javax.mail.MessagingException
public java.util.concurrent.ConcurrentMap<java.lang.Class,MailAction> getMethodMap()
protected void setMethodMap(java.util.concurrent.ConcurrentMap<java.lang.Class,MailAction> mailActionMap)
mailActionMap
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |