org.apache.james.pop3server
Class POP3Handler

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.james.BaseConnectionHandler
              |
              +--org.apache.james.pop3server.POP3Handler
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 POP3Handler
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

Version:
0.9
Author:
Federico Barbieri

Fields inherited from class org.apache.james.BaseConnectionHandler
helloName, timeout
 
Constructor Summary
POP3Handler()
           
 
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
 

Constructor Detail

POP3Handler

public POP3Handler()
Method Detail

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 occurs
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."