org.apache.james.remotemanager
Class RemoteManagerHandler

java.lang.Object
  extended by org.apache.james.remotemanager.RemoteManagerHandler
All Implemented Interfaces:
ProtocolHandler

public class RemoteManagerHandler
extends java.lang.Object
implements ProtocolHandler

Provides a console-based administration interface covering most of the management functionality found in the classes from package org.apache.james.management TODO: -improve protocol -much more...

Version:
$Revision: 726391 $

Constructor Summary
RemoteManagerHandler()
           
 
Method Summary
 void errorHandler(java.lang.RuntimeException e)
          Provides errorHandling
 void handleProtocol()
          Handle the protocol
 void resetHandler()
          Resets the handler data to a basic state.
 void setConfigurationData(java.lang.Object theData)
          Set the configuration data for the handler.
 void setProtocolHandlerHelper(ProtocolHandlerHelper phh)
          Injects the ProtocolHandlerHelper service
 
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

setConfigurationData

public void setConfigurationData(java.lang.Object theData)
Set the configuration data for the handler.

Specified by:
setConfigurationData in interface ProtocolHandler
Parameters:
theData - the configuration data

handleProtocol

public void handleProtocol()
                    throws java.io.IOException
Description copied from interface: ProtocolHandler
Handle the protocol

Specified by:
handleProtocol in interface ProtocolHandler
Throws:
java.io.IOException - get thrown if an IO error is detected
See Also:
ConnectionHandler.handleConnection(Socket)

errorHandler

public void errorHandler(java.lang.RuntimeException e)
Description copied from interface: ProtocolHandler
Provides errorHandling

Specified by:
errorHandler in interface ProtocolHandler
Parameters:
e - exception
See Also:
AbstractJamesHandler.errorHandler(java.lang.RuntimeException)

resetHandler

public void resetHandler()
Resets the handler data to a basic state.

Specified by:
resetHandler in interface ProtocolHandler

setProtocolHandlerHelper

public void setProtocolHandlerHelper(ProtocolHandlerHelper phh)
Description copied from interface: ProtocolHandler
Injects the ProtocolHandlerHelper service

Specified by:
setProtocolHandlerHelper in interface ProtocolHandler
Parameters:
phh - service


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.