org.apache.james.protocols.smtp.core
Class DataCmdHandler
java.lang.Object
org.apache.james.protocols.smtp.core.DataCmdHandler
- All Implemented Interfaces:
- CommandHandler<SMTPSession>, ExtensibleHandler
public class DataCmdHandler
- extends java.lang.Object
- implements CommandHandler<SMTPSession>, ExtensibleHandler
handles DATA command
|
Field Summary |
static java.lang.String |
MAILENV
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAILENV
public static final java.lang.String MAILENV
- See Also:
- Constant Field Values
DataCmdHandler
public DataCmdHandler()
onCommand
public Response onCommand(SMTPSession session,
Request request)
- process DATA command
- Specified by:
onCommand in interface CommandHandler<SMTPSession>
doDATA
protected SMTPResponse doDATA(SMTPSession session,
java.lang.String argument)
- Handler method called upon receipt of a DATA command.
Reads in message data, creates header, and delivers to
mail server service for delivery.
- Parameters:
session - SMTP session objectargument - the argument passed in with the command by the SMTP client
getImplCommands
public java.util.Collection<java.lang.String> getImplCommands()
- Specified by:
getImplCommands in interface CommandHandler<SMTPSession>
- See Also:
org.apache.james.smtpserver.protocol.CommandHandler#getImplCommands()
getMarkerInterfaces
public java.util.List getMarkerInterfaces()
- Specified by:
getMarkerInterfaces in interface ExtensibleHandler
- See Also:
ExtensibleHandler.getMarkerInterfaces()
wireExtensions
public void wireExtensions(java.lang.Class interfaceName,
java.util.List extension)
throws WiringException
- Specified by:
wireExtensions in interface ExtensibleHandler
- Throws:
WiringException- See Also:
ExtensibleHandler.wireExtensions(java.lang.Class, java.util.List)
doDATAFilter
protected SMTPResponse doDATAFilter(SMTPSession session,
java.lang.String argument)
getLineHandler
protected LineHandler<SMTPSession> getLineHandler()
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.