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, wireExtensibleHandlers
destroy, getHandlers
public SMTPProtocolHandlerChain()
public SMTPProtocolHandlerChain(boolean addDefault)
public SMTPProtocolHandlerChain(Hook... hooks) throws WiringException
Hook
's. After that ProtocolHandlerChainImpl.wireExtensibleHandlers()
is calledhooks
- WiringException
protected List<ProtocolHandler> initDefaultHandlers()
public boolean add(ProtocolHandler handler)
add
in interface Collection<ProtocolHandler>
add
in interface List<ProtocolHandler>
add
in class ProtocolHandlerChainImpl
public boolean addAll(Collection<? extends ProtocolHandler> c)
addAll
in interface Collection<ProtocolHandler>
addAll
in interface List<ProtocolHandler>
addAll
in class ProtocolHandlerChainImpl
public boolean addAll(int index, Collection<? extends ProtocolHandler> c)
addAll
in interface List<ProtocolHandler>
addAll
in class ProtocolHandlerChainImpl
public void add(int index, ProtocolHandler element)
add
in interface List<ProtocolHandler>
add
in class ProtocolHandlerChainImpl
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.