org.apache.ftpserver
Class FtpServerImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.ftpserver.FtpServerImpl
All Implemented Interfaces:
org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, FtpServerInterface

public class FtpServerImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements FtpServerInterface, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory

Ftp server starting point. Avalon framework will load this from the jar file. This is also the starting point of remote admin.

Version:
1.0
Author:
Rana Bhattacharyya , Paul Hammant

Field Summary
 
Fields inherited from interface org.apache.ftpserver.interfaces.FtpServerInterface
DISPLAY_NAME, ROLE
 
Constructor Summary
FtpServerImpl()
          Default constructor - does nothing.
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
          Configure the server - third step.
 void contextualize(org.apache.avalon.framework.context.Context context)
          Set application context - first spep.
 org.apache.avalon.cornerstone.services.connection.ConnectionHandler createConnectionHandler()
          Construct an appropriate ConnectionHandler to handle a new connection.
 void dispose()
          Release all resources.
 void releaseConnectionHandler(org.apache.avalon.cornerstone.services.connection.ConnectionHandler connectionHandler)
          Release a previously created ConnectionHandler.
 void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
          Get all managers - second step.
 
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
 

Constructor Detail

FtpServerImpl

public FtpServerImpl()
Default constructor - does nothing.

Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Set application context - first spep.

Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException

service

public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
             throws org.apache.avalon.framework.service.ServiceException
Get all managers - second step.

Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configure the server - third step.

Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Parameters:
conf - the XML configuration block
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

dispose

public void dispose()
Release all resources.

Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable

createConnectionHandler

public org.apache.avalon.cornerstone.services.connection.ConnectionHandler createConnectionHandler()
                                                                                            throws Exception
Construct an appropriate ConnectionHandler to handle a new connection.

Specified by:
createConnectionHandler in interface org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory
Returns:
the new ConnectionHandler
Throws:
Exception - if an error occurs

releaseConnectionHandler

public void releaseConnectionHandler(org.apache.avalon.cornerstone.services.connection.ConnectionHandler connectionHandler)
Release a previously created ConnectionHandler. e.g. for spooling.

Specified by:
releaseConnectionHandler in interface org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory


Copyright © 2001-2012 Codehaus. All Rights Reserved.