org.apache.james.socket
Interface ProtocolHandler

All Known Implementing Classes:
ImapHandler, NNTPHandler, POP3Handler, RemoteManagerHandler, SMTPHandler

public interface ProtocolHandler


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)
          This method will be implemented checking for the correct class type.
 void setProtocolHandlerHelper(ProtocolHandlerHelper phh)
          Injects the ProtocolHandlerHelper service
 

Method Detail

setConfigurationData

void setConfigurationData(java.lang.Object theData)
This method will be implemented checking for the correct class type.

Parameters:
theData - Configuration Bean.

handleProtocol

void handleProtocol()
                    throws java.io.IOException
Handle the protocol

Throws:
java.io.IOException - get thrown if an IO error is detected

resetHandler

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


setProtocolHandlerHelper

void setProtocolHandlerHelper(ProtocolHandlerHelper phh)
Injects the ProtocolHandlerHelper service

Parameters:
phh - service

errorHandler

void errorHandler(java.lang.RuntimeException e)
Provides errorHandling

Parameters:
e - exception


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