public class DataCmdHandler extends Object implements CommandHandler<SMTPSession>, ExtensibleHandler
Modifier and Type | Class and Description |
---|---|
static class |
DataCmdHandler.DataConsumerLineHandler |
static class |
DataCmdHandler.DataLineFilterWrapper |
Constructor and Description |
---|
DataCmdHandler() |
Modifier and Type | Method and Description |
---|---|
protected MailEnvelope |
createEnvelope(SMTPSession session,
MailAddress sender,
List<MailAddress> recipients) |
protected Response |
doDATA(SMTPSession session,
String argument)
Handler method called upon receipt of a DATA command.
|
protected Response |
doDATAFilter(SMTPSession session,
String argument) |
Collection<String> |
getImplCommands()
Return a Collection of implemented commands
|
protected LineHandler<SMTPSession> |
getLineHandler() |
List |
getMarkerInterfaces()
Return a List of interfaces of plugins that will
extend this.
|
Response |
onCommand(SMTPSession session,
Request request)
process DATA command
|
void |
wireExtensions(Class interfaceName,
List extension)
Method called during initialization after all the handlers have been declared
in the ProtocolHandlerChain.
|
public static final String MAILENV
public Response onCommand(SMTPSession session, Request request)
onCommand
in interface CommandHandler<SMTPSession>
protected Response doDATA(SMTPSession session, String argument)
session
- SMTP session objectargument
- the argument passed in with the command by the SMTP clientprotected MailEnvelope createEnvelope(SMTPSession session, MailAddress sender, List<MailAddress> recipients)
public Collection<String> getImplCommands()
CommandHandler
getImplCommands
in interface CommandHandler<SMTPSession>
CommandHandler.getImplCommands()
public List getMarkerInterfaces()
ExtensibleHandler
getMarkerInterfaces
in interface ExtensibleHandler
ExtensibleHandler.getMarkerInterfaces()
public void wireExtensions(Class interfaceName, List extension) throws WiringException
ExtensibleHandler
wireExtensions
in interface ExtensibleHandler
extension
- a list of objects implementing the marker interfaceWiringException
ExtensibleHandler.wireExtensions(java.lang.Class, java.util.List)
protected Response doDATAFilter(SMTPSession session, String argument)
protected LineHandler<SMTPSession> getLineHandler()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.