org.apache.ftpserver.ftpletcontainer
Interface FtpletContainer

All Superinterfaces:
Ftplet
All Known Implementing Classes:
DefaultFtpletContainer

public interface FtpletContainer
extends Ftplet

Interface describing an Ftplet container. Ftplet containers extend the Ftplet interface and forward any events to the Ftplets hosted by the container.

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

Method Summary
 Ftplet getFtplet(java.lang.String name)
          Retrive the Ftplet identified by the name (as provided in the #addFtplet(String, Ftplet) method.
 java.util.Map<java.lang.String,Ftplet> getFtplets()
          Retrive all Ftplets registered with this container
 
Methods inherited from interface org.apache.ftpserver.ftplet.Ftplet
afterCommand, beforeCommand, destroy, init, onConnect, onDisconnect
 

Method Detail

getFtplet

Ftplet getFtplet(java.lang.String name)
Retrive the Ftplet identified by the name (as provided in the #addFtplet(String, Ftplet) method.

Parameters:
name - The name of the Ftplet to retrive
Returns:
The Ftplet if found, or null if the name is unknown to the container.

getFtplets

java.util.Map<java.lang.String,Ftplet> getFtplets()
Retrive all Ftplets registered with this container

Returns:
A map of all Ftplets with their name as the key


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.