org.apache.james.imapserver
Class ImapHandler

java.lang.Object
  extended by org.apache.james.imapserver.ImapHandler
All Implemented Interfaces:
ProtocolHandler

public class ImapHandler
extends java.lang.Object
implements ProtocolHandler

Handles IMAP connections.


Constructor Summary
ImapHandler(org.apache.james.imap.main.ImapRequestHandler requestHandler, java.lang.String hello)
           
 
Method Summary
 void errorHandler(java.lang.RuntimeException e)
          Method which will be called on error
 org.apache.avalon.framework.logger.Logger getLogger()
           
 void handleProtocol()
          Handle the protocol
 void resetHandler()
          Resets the handler data to a basic state.
 void setConfigurationData(java.lang.Object theData)
          This method will be implemented checking for the correct class type.
 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

ImapHandler

public ImapHandler(org.apache.james.imap.main.ImapRequestHandler requestHandler,
                   java.lang.String hello)
Method Detail

setConfigurationData

public void setConfigurationData(java.lang.Object theData)
Description copied from interface: ProtocolHandler
This method will be implemented checking for the correct class type.

Specified by:
setConfigurationData in interface ProtocolHandler
Parameters:
theData - Configuration Bean.

resetHandler

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

Specified by:
resetHandler in interface ProtocolHandler

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)
Method which will be called on error

Specified by:
errorHandler in interface ProtocolHandler
Parameters:
e - the RuntimeException

getLogger

public org.apache.avalon.framework.logger.Logger getLogger()

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.