org.apache.james.nntpserver
Class NNTPHandler

java.lang.Object
  extended by org.apache.james.nntpserver.NNTPHandler
All Implemented Interfaces:
ProtocolHandler

public class NNTPHandler
extends java.lang.Object
implements ProtocolHandler

The NNTP protocol is defined by RFC 977. This implementation is based on IETF draft 15, posted on 15th July '2002. URL: http://www.ietf.org/internet-drafts/draft-ietf-nntpext-base-15.txt Common NNTP extensions are in RFC 2980.


Field Summary
static long UTC_OFFSET
          The UTC offset for this time zone.
 
Constructor Summary
NNTPHandler()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTC_OFFSET

public static final long UTC_OFFSET
The UTC offset for this time zone.

Constructor Detail

NNTPHandler

public NNTPHandler()
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.
See Also:
AbstractJamesHandler.setConfigurationData(Object)

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:
AbstractJamesHandler.handleProtocol()

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()
Description copied from interface: ProtocolHandler
Resets the handler data to a basic state.

Specified by:
resetHandler in interface ProtocolHandler
See Also:
AbstractJamesHandler.resetHandler()

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.