|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.protocols.api.handler.AbstractProtocolHandlerChain
org.apache.james.protocols.smtp.SMTPProtocolHandlerChain
public class SMTPProtocolHandlerChain
This ProtocolHandlerChain implementation add all needed handlers to
the chain to act as full blown SMTPServer. By default messages will just get
rejected after the DATA command.
If you want to accept the messagejust add a MessageHook
implementation to the chain and handle the queuing
| Constructor Summary | |
|---|---|
SMTPProtocolHandlerChain()
|
|
| Method Summary | |
|---|---|
void |
addHook(Hook hook)
Add the hook to the chain |
void |
addHook(int index,
Hook hook)
Add the hook to the chain on the given index |
protected List<Object> |
getHandlers()
|
int |
getIndexOfHook(Hook hook)
Return the index of the given hook |
protected List<Object> |
initDefaultHandlers()
|
Hook |
removeHook(int index)
Remove the Hook found on the given index from the chain |
| Methods inherited from class org.apache.james.protocols.api.handler.AbstractProtocolHandlerChain |
|---|
getHandlers, wireExtensibleHandlers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMTPProtocolHandlerChain()
throws WiringException
WiringException| Method Detail |
|---|
protected List<Object> initDefaultHandlers()
public final void addHook(Hook hook)
throws WiringException
hook -
WiringException
public final void addHook(int index,
Hook hook)
throws WiringException
index - hook -
WiringException
public final Hook removeHook(int index)
throws WiringException
index -
WiringExceptionpublic int getIndexOfHook(Hook hook)
hook -
protected List<Object> getHandlers()
getHandlers in class AbstractProtocolHandlerChainAbstractProtocolHandlerChain.getHandlers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||