org.apache.james.nntpserver
Class NNTPServer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.cornerstone.services.connection.AbstractHandlerFactory
org.apache.james.socket.AbstractJamesService
org.apache.james.nntpserver.NNTPServer
- All Implemented Interfaces:
- org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory, org.apache.avalon.excalibur.pool.ObjectFactory, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, NNTPServerMBean
public class NNTPServer
- extends AbstractJamesService
- implements NNTPServerMBean
NNTP Server
Fields inherited from class org.apache.james.socket.AbstractJamesService |
backlog, BACKLOG_NAME, bindTo, connectionLimit, connectionName, DEFAULT_BACKLOG, DEFAULT_TIMEOUT, HELLO_NAME, helloName, port, serverSocket, serverSocketType, theHandlerPool, theWatchdogFactory, threadGroup, threadPool, timeout, TIMEOUT_NAME |
Methods inherited from class org.apache.james.socket.AbstractJamesService |
createConnectionHandler, decommission, dispose, getCreatedClass, getLocalHostName, getNetworkInterface, getPort, getSocketType, getWatchdogFactory, initialize, isDefaultTLSEnabled, isEnabled, newHandler, newInstance, releaseConnectionHandler, setConnectionManager, setStreamDumpDir |
Methods inherited from class org.apache.avalon.cornerstone.services.connection.AbstractHandlerFactory |
contextualize |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NNTPServer
public NNTPServer()
setUserRepository
public void setUserRepository(UsersRepository userRepository)
- Set the UserRepository
- Parameters:
userRepository
- the UserRepository
setRepository
public void setRepository(NNTPRepository nntpRepository)
- Set the NNTPRepository
- Parameters:
nntpRepository
- the NNTPRepository
setMailServer
public void setMailServer(MailServer mailServer)
service
public void service(org.apache.avalon.framework.service.ServiceManager componentManager)
throws org.apache.avalon.framework.service.ServiceException
- Specified by:
service
in interface org.apache.avalon.framework.service.Serviceable
- Overrides:
service
in class AbstractJamesService
- Throws:
org.apache.avalon.framework.service.ServiceException
- See Also:
Serviceable.service(ServiceManager)
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 AbstractJamesService
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- See Also:
Configurable.configure(Configuration)
getDefaultPort
protected int getDefaultPort()
- Description copied from class:
AbstractJamesService
- Get the default port for this server type.
It is strongly recommended that subclasses of this class
override this method to specify the default port for their
specific server type.
- Overrides:
getDefaultPort
in class AbstractJamesService
- Returns:
- the default port
- See Also:
AbstractJamesService.getDefaultPort()
getServiceType
public java.lang.String getServiceType()
- Description copied from class:
AbstractJamesService
- This method returns the type of service provided by this server.
This should be invariant over the life of the class.
Subclasses may override this implementation. This implementation
parses the complete class name and returns the undecorated class
name.
- Overrides:
getServiceType
in class AbstractJamesService
- Returns:
- description of this server
- See Also:
AbstractJamesService.getServiceType()
newProtocolHandlerInstance
public ProtocolHandler newProtocolHandlerInstance()
- Specified by:
newProtocolHandlerInstance
in class AbstractJamesService
- See Also:
AbstractJamesService.newProtocolHandlerInstance()
getConfigurationData
protected java.lang.Object getConfigurationData()
- Specified by:
getConfigurationData
in class AbstractJamesService
- See Also:
AbstractJamesService.getConfigurationData()
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.