|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FtpletContainer
Interface describing an Ftplet container.
Ftplet containers extend the Ftplet
interface and
forward any events to the Ftplets hosted by the container.
Method Summary | |
---|---|
void |
addFtplet(java.lang.String name,
Ftplet ftplet)
Add an Ftplet to the container. |
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 |
Ftplet |
removeFtplet(java.lang.String name)
Remove the Ftplet identified by the name (as
provided in the addFtplet(String, Ftplet) method. |
void |
setFtplets(java.util.Map<java.lang.String,Ftplet> ftplets)
Set the Ftplets for this container. |
Methods inherited from interface org.apache.ftpserver.ftplet.Ftplet |
---|
destroy, init, onAppendEnd, onAppendStart, onConnect, onDeleteEnd, onDeleteStart, onDisconnect, onDownloadEnd, onDownloadStart, onLogin, onMkdirEnd, onMkdirStart, onRenameEnd, onRenameStart, onRmdirEnd, onRmdirStart, onSite, onUploadEnd, onUploadStart, onUploadUniqueEnd, onUploadUniqueStart |
Method Detail |
---|
void addFtplet(java.lang.String name, Ftplet ftplet)
Ftplet
to the container.
name
- The name of the Ftplet to be addedftplet
- The Ftplet
java.lang.IllegalArgumentException
- If an Ftplet with the same
name already exist within the containerFtplet removeFtplet(java.lang.String name)
Ftplet
identified by the name (as
provided in the addFtplet(String, Ftplet)
method.
name
- The name of the Ftplet to be removed
Ftplet getFtplet(java.lang.String name)
Ftplet
identified by the name (as
provided in the addFtplet(String, Ftplet)
method.
name
- The name of the Ftplet to retrive
java.util.Map<java.lang.String,Ftplet> getFtplets()
void setFtplets(java.util.Map<java.lang.String,Ftplet> ftplets)
ftplets
- A map of all Ftplets with their name as the key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |