org.apache.james.protocols.smtp.core
Class DataCmdHandler

java.lang.Object
  extended by 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


Nested Class Summary
 class DataCmdHandler.DataConsumerLineHandler
           
 class DataCmdHandler.DataLineFilterWrapper
           
 
Field Summary
static java.lang.String MAILENV
           
 
Constructor Summary
DataCmdHandler()
           
 
Method Summary
protected  SMTPResponse doDATA(SMTPSession session, java.lang.String argument)
          Handler method called upon receipt of a DATA command.
protected  SMTPResponse doDATAFilter(SMTPSession session, java.lang.String argument)
           
 java.util.Collection<java.lang.String> getImplCommands()
           
protected  LineHandler<SMTPSession> getLineHandler()
           
 java.util.List getMarkerInterfaces()
           
 Response onCommand(SMTPSession session, Request request)
          process DATA command
 void wireExtensions(java.lang.Class interfaceName, java.util.List extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAILENV

public static final java.lang.String MAILENV
See Also:
Constant Field Values
Constructor Detail

DataCmdHandler

public DataCmdHandler()
Method Detail

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 object
argument - 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.