Modifier and Type | Interface and Description |
---|---|
interface |
CommandHandler<Session extends ProtocolSession>
Custom command handlers must implement this interface
The command handlers will be Server wide common to all the handlers,
therefore the command handlers must store all the state information
in the Session object
|
interface |
ConnectHandler<Session extends ProtocolSession>
Custom connect handlers must implement this interface
The connect handlers will be server-wide common to all the Handlers ,
therefore the handlers must store all the state information
in the Session object
|
interface |
DisconnectHandler<S extends ProtocolSession>
A
DisconnectHandler will get called once a client gets disconnected from the server |
interface |
LifecycleAwareProtocolHandler
This interface allows to handle lifecycles for handlers and hooks
|
interface |
LineHandler<Session extends ProtocolSession>
Implementations of this Interface will get called after a full line (terminated with
ProtocolSession.getLineDelimiter() ) was received. |
interface |
ProtocolHandlerResultHandler<R extends Response,S extends ProtocolSession>
An special
ProtocolHandler which allows to intercept returned Response 's and act on them. |
Modifier and Type | Class and Description |
---|---|
class |
CommandDispatcher<Session extends ProtocolSession>
A CommandDispatcher is responsible to call the right
CommandHandler for a given Command |
class |
CommandHandlerResultLogger
|
class |
MultiLineHandler<S extends ProtocolSession>
A special
LineHandler which will "buffer" the received lines till a point and the push them all at
one to the MultiLineHandler.onLines(ProtocolSession, Collection) method |
class |
UnknownCommandHandler<S extends ProtocolSession>
A special
CommandHandler implementation which should be extended by CommandHandler 's which should get called for unknown command. |
Modifier and Type | Method and Description |
---|---|
ProtocolHandler |
ProtocolHandlerChainImpl.get(int index) |
ProtocolHandler |
ProtocolHandlerChainImpl.remove(int index) |
ProtocolHandler |
ProtocolHandlerChainImpl.set(int index,
ProtocolHandler element) |
Modifier and Type | Method and Description |
---|---|
protected abstract List<ProtocolHandler> |
AbstractProtocolHandlerChain.getHandlers()
Return an immutable List of all Handlers
|
protected List<ProtocolHandler> |
ProtocolHandlerChainImpl.getHandlers() |
Iterator<ProtocolHandler> |
ProtocolHandlerChainImpl.iterator() |
ListIterator<ProtocolHandler> |
ProtocolHandlerChainImpl.listIterator() |
ListIterator<ProtocolHandler> |
ProtocolHandlerChainImpl.listIterator(int index) |
List<ProtocolHandler> |
ProtocolHandlerChainImpl.subList(int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
void |
ProtocolHandlerChainImpl.add(int index,
ProtocolHandler element) |
boolean |
ProtocolHandlerChainImpl.add(ProtocolHandler handler) |
Response |
CommandHandlerResultLogger.onResponse(ProtocolSession session,
Response response,
long executionTime,
ProtocolHandler handler) |
Response |
ProtocolHandlerResultHandler.onResponse(ProtocolSession session,
R response,
long executionTime,
ProtocolHandler handler)
Get called when a
Response was returned from the ProtocolHandler |
ProtocolHandler |
ProtocolHandlerChainImpl.set(int index,
ProtocolHandler element) |
Modifier and Type | Method and Description |
---|---|
boolean |
ProtocolHandlerChainImpl.addAll(Collection<? extends ProtocolHandler> c) |
boolean |
ProtocolHandlerChainImpl.addAll(int index,
Collection<? extends ProtocolHandler> c) |
Modifier and Type | Class and Description |
---|---|
class |
IMAPCommandDispatcher |
Modifier and Type | Method and Description |
---|---|
protected List<ProtocolHandler> |
LMTPProtocolHandlerChain.initDefaultHandlers() |
Modifier and Type | Class and Description |
---|---|
class |
LhloCmdHandler
Handles the LHLO command
|
Modifier and Type | Interface and Description |
---|---|
interface |
DeliverToRecipientHook
Hook which can be implemented to handle the delivery of a MailEnvelope to a recipient. |
Modifier and Type | Method and Description |
---|---|
protected List<ProtocolHandler> |
POP3ProtocolHandlerChain.initDefaultHandlers(AbstractPassCmdHandler... authHandlers) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractApopCmdHandler
Handles the APOP command
|
class |
AbstractPassCmdHandler
Handles PASS commands.
|
class |
CapaCmdHandler
This handler is used to handle CAPA commands
|
class |
DeleCmdHandler
Handles DELE command
|
class |
ListCmdHandler
Handles LIST command
|
class |
RetrCmdHandler
Handles RETR command
|
class |
StatCmdHandler
Handles STAT command
|
class |
StlsCmdHandler
Handler which offer STARTTLS implementation for POP3.
|
class |
TopCmdHandler
Handles TOP command
|
class |
UidlCmdHandler
Handles UIDL command
|
class |
UserCmdHandler
Handles USER command
|
Modifier and Type | Method and Description |
---|---|
protected List<ProtocolHandler> |
SMTPProtocolHandlerChain.initDefaultHandlers() |
Modifier and Type | Method and Description |
---|---|
void |
SMTPProtocolHandlerChain.add(int index,
ProtocolHandler element) |
boolean |
SMTPProtocolHandlerChain.add(ProtocolHandler handler) |
Modifier and Type | Method and Description |
---|---|
boolean |
SMTPProtocolHandlerChain.addAll(Collection<? extends ProtocolHandler> c) |
boolean |
SMTPProtocolHandlerChain.addAll(int index,
Collection<? extends ProtocolHandler> c) |
Modifier and Type | Interface and Description |
---|---|
interface |
DataLineFilter
DataLineFilter are used to check the Data stream while the message is
being received.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAddHeadersFilter
Abstract base class for
SeparatingDataLineFilter implementations that add headers to a message |
class |
AbstractAuthRequiredToRelayRcptHook
Handler which check for authenticated users
|
class |
AbstractHookableCmdHandler<Hook extends Hook>
Abstract class which Handle hook-aware CommanHandler.
|
class |
AbstractSenderAuthIdentifyVerificationRcptHook
Handler which check if the authenticated user is the same as the one used as MAIL FROM
|
class |
AcceptRecipientIfRelayingIsAllowed
This hook will stop the hook chain if relaying is allowed
|
class |
DataCmdHandler
handles DATA command
|
static class |
DataCmdHandler.DataConsumerLineHandler |
static class |
DataCmdHandler.DataLineFilterWrapper |
class |
DataLineMessageHookHandler
This class handles the actual calling of the
MessageHook implementations to queue the message. |
class |
ExpnCmdHandler
Handles EXPN command
|
class |
HeloCmdHandler
Handles HELO command
|
class |
HelpCmdHandler
Handles HELP command
|
class |
MailCmdHandler
Handles MAIL command
|
class |
NoopCmdHandler
Handles NOOP command
|
class |
PostmasterAbuseRcptHook
Handler which whitelist "postmaster" and "abuse" recipients.
|
class |
QuitCmdHandler
Handles QUIT command
|
class |
RcptCmdHandler
Handles RCPT command
|
class |
ReceivedDataLineFilter
AbstractAddHeadersFilter which adds the Received header for the message. |
class |
RsetCmdHandler
Handles RSET command
|
class |
SeparatingDataLineFilter
Abstract base class which makes it easier to handles lines be providing one method per message part.
|
class |
UnknownCmdHandler
Default command handler for handling unknown commands
|
class |
VrfyCmdHandler
Command handler for handling VRFY command
|
class |
WelcomeMessageHandler
This ConnectHandler print the greeting on connecting
|
Modifier and Type | Class and Description |
---|---|
class |
AuthCmdHandler
handles AUTH command
Note: we could extend this to use java5 sasl standard libraries and provide client
support against a server implemented via non-james specific hooks.
|
class |
EhloCmdHandler
Handles EHLO command
|
class |
MailSizeEsmtpExtension
Handle the ESMTP SIZE extension.
|
class |
StartTlsCmdHandler
Handles STARTTLS command
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractGreylistHandler
Abstract base class which implement GreyListing.
|
class |
AbstractValidRcptHandler
Handler which want todo an recipient check should extend this
|
class |
DNSRBLHandler
Connect handler for DNSRBL processing
|
class |
MaxRcptHandler |
class |
MaxUnknownCmdHandler
UnknownHook implementation which disconnect the client after a issue to many unknown commands |
class |
ResolvableEhloHeloHandler
This CommandHandler can be used to reject not resolvable EHLO/HELO
|
class |
ReverseEqualsEhloHeloHandler |
class |
SpamTrapHandler
This handler can be used for providing a spam trap.
|
class |
SupressDuplicateRcptHandler
This handler can be used to just ignore duplicated recipients.
|
class |
ValidSenderDomainHandler
Add MFDNSCheck feature to SMTPServer.
|
Modifier and Type | Class and Description |
---|---|
class |
HookResultLogger
Log the
HookResult . |
Modifier and Type | Interface and Description |
---|---|
interface |
AuthHook
Implement this interfaces to hook in the AUTH Command
|
interface |
HeloHook
Implement this interfaces to hook in the HELO Command
|
interface |
Hook
Just and marker interface for the different Hooks
|
interface |
HookResultHook |
interface |
MailHook
Implement this interfaces to hook in the MAIL Command
|
interface |
MailParametersHook
Implement this interfaces to hook in the MAIL Command
|
interface |
MessageHook
Custom message handlers must implement this interface The message hooks will
be server-wide common to all the SMTPHandlers, therefore the handlers must
store all the state information in the SMTPSession object
|
interface |
QuitHook
Implement this interfaces to hook in the MAIL Command
|
interface |
RcptHook
Implement this interfaces to hook in the MAIL Command
|
interface |
UnknownHook
Hook for unknown commands
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleHook
|
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.