org.apache.james.smtpserver
Class SMTPHandler
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.james.BaseConnectionHandler
|
+--org.apache.james.smtpserver.SMTPHandler
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.cornerstone.services.connection.ConnectionHandler, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.cornerstone.services.scheduler.Target
- public class SMTPHandler
- extends BaseConnectionHandler
- implements org.apache.avalon.cornerstone.services.connection.ConnectionHandler, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.cornerstone.services.scheduler.Target
This handles an individual incoming message. It handles regular SMTP
commands, and when it receives a message, adds it to the spool.
- Author:
- Serge Knystautas , Federico Barbieri , Jason Borden , Matthew Pangaro
This is $Revision: 1.8 $
Committed on $Date: 2001/08/11 21:25:15 $ by: $Author: serge $
Method Summary |
void |
compose(org.apache.avalon.framework.component.ComponentManager componentManager)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
handleConnection(java.net.Socket connection)
Handle a connection. |
void |
targetTriggered(java.lang.String triggerName)
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER_NAME
public static final java.lang.String SERVER_NAME
SERVER_TYPE
public static final java.lang.String SERVER_TYPE
REMOTE_NAME
public static final java.lang.String REMOTE_NAME
REMOTE_IP
public static final java.lang.String REMOTE_IP
NAME_GIVEN
public static final java.lang.String NAME_GIVEN
CURRENT_HELO_MODE
public static final java.lang.String CURRENT_HELO_MODE
SENDER
public static final java.lang.String SENDER
MESG_FAILED
public static final java.lang.String MESG_FAILED
RCPT_VECTOR
public static final java.lang.String RCPT_VECTOR
SMTP_ID
public static final java.lang.String SMTP_ID
AUTH
public static final java.lang.String AUTH
SMTPTerminator
public static final char[] SMTPTerminator
SMTPHandler
public SMTPHandler()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Overrides:
configure
in class BaseConnectionHandler
compose
public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
throws org.apache.avalon.framework.component.ComponentException
- Specified by:
compose
in interface org.apache.avalon.framework.component.Composable
handleConnection
public void handleConnection(java.net.Socket connection)
throws java.io.IOException
- Handle a connection.
This handler is responsible for processing connections as they occur.
- Specified by:
handleConnection
in interface org.apache.avalon.cornerstone.services.connection.ConnectionHandler
- Parameters:
connection
- the connection- Throws:
java.io.IOException
- if an error reading from socket occursjava.net.ProtocolException
- if an error handling connection occurs
targetTriggered
public void targetTriggered(java.lang.String triggerName)
- Specified by:
targetTriggered
in interface org.apache.avalon.cornerstone.services.scheduler.Target
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.