org.apache.james.remotemanager
Class RemoteManagerHandler

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

Provides a really rude network interface to administer James. Allow to add accounts. TODO: -improve protocol -add remove user -much more...

Version:
1.0.0, 24/04/1999
Author:
Federico Barbieri , Peter Donald, Charles Benett Last changed by: $Author: danny $ on $Date: 2002/01/09 21:35:50 $ $Revision: 1.7 $

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

RemoteManagerHandler

public RemoteManagerHandler()
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
java.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."