public class SMTPProtocolHandlerChain extends ProtocolHandlerChainImpl
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.| Constructor and Description |
|---|
SMTPProtocolHandlerChain() |
SMTPProtocolHandlerChain(boolean addDefault) |
SMTPProtocolHandlerChain(Hook... hooks)
Add all default handlers to the chain and the given
Hook's. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
ProtocolHandler element) |
boolean |
add(ProtocolHandler handler) |
boolean |
addAll(Collection<? extends ProtocolHandler> c) |
boolean |
addAll(int index,
Collection<? extends ProtocolHandler> c) |
protected List<ProtocolHandler> |
initDefaultHandlers() |
clear, contains, containsAll, get, getHandlers, indexOf, isEmpty, isReadyOnly, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, wireExtensibleHandlersdestroy, getHandlerspublic SMTPProtocolHandlerChain()
public SMTPProtocolHandlerChain(boolean addDefault)
public SMTPProtocolHandlerChain(Hook... hooks) throws WiringException
Hook's. After that ProtocolHandlerChainImpl.wireExtensibleHandlers() is calledhooks - WiringExceptionprotected List<ProtocolHandler> initDefaultHandlers()
public boolean add(ProtocolHandler handler)
add in interface Collection<ProtocolHandler>add in interface List<ProtocolHandler>add in class ProtocolHandlerChainImplpublic boolean addAll(Collection<? extends ProtocolHandler> c)
addAll in interface Collection<ProtocolHandler>addAll in interface List<ProtocolHandler>addAll in class ProtocolHandlerChainImplpublic boolean addAll(int index,
Collection<? extends ProtocolHandler> c)
addAll in interface List<ProtocolHandler>addAll in class ProtocolHandlerChainImplpublic void add(int index,
ProtocolHandler element)
add in interface List<ProtocolHandler>add in class ProtocolHandlerChainImplCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.