|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.ftplet.DefaultFtpletContainer
public class DefaultFtpletContainer
This ftplet calls other ftplet methods and returns appropriate return value.
Constructor Summary | |
---|---|
DefaultFtpletContainer()
|
Method Summary | |
---|---|
void |
addFtplet(java.lang.String name,
Ftplet ftplet)
Add an Ftplet to the container. |
void |
destroy()
Destroy all ftplets. |
void |
dispose()
|
Ftplet |
getFtplet(java.lang.String name)
Get Ftplet for the given name. |
java.util.Map<java.lang.String,Ftplet> |
getFtplets()
Retrive all Ftplets registered with this container |
void |
init(FtpletContext ftpletContext)
|
FtpletEnum |
onAppendEnd(FtpSession session,
FtpRequest request)
Call ftplet onAppendEnd. |
FtpletEnum |
onAppendStart(FtpSession session,
FtpRequest request)
Call ftplet onAppendStart. |
FtpletEnum |
onConnect(FtpSession session)
Call ftplet onConnect. |
FtpletEnum |
onDeleteEnd(FtpSession session,
FtpRequest request)
Call ftplet onDeleteEnd. |
FtpletEnum |
onDeleteStart(FtpSession session,
FtpRequest request)
Call ftplet onDeleteStart. |
FtpletEnum |
onDisconnect(FtpSession session)
Call ftplet onDisconnect. |
FtpletEnum |
onDownloadEnd(FtpSession session,
FtpRequest request)
Call ftplet onDownloadEnd. |
FtpletEnum |
onDownloadStart(FtpSession session,
FtpRequest request)
Call ftplet onDownloadStart. |
FtpletEnum |
onLogin(FtpSession session,
FtpRequest request)
Call ftplet onLogin. |
FtpletEnum |
onMkdirEnd(FtpSession session,
FtpRequest request)
Call ftplet onMkdirEnd. |
FtpletEnum |
onMkdirStart(FtpSession session,
FtpRequest request)
Call ftplet onMkdirStart. |
FtpletEnum |
onRenameEnd(FtpSession session,
FtpRequest request)
Call ftplet onRenameEnd. |
FtpletEnum |
onRenameStart(FtpSession session,
FtpRequest request)
Call ftplet onRenameStart. |
FtpletEnum |
onRmdirEnd(FtpSession session,
FtpRequest request)
Call ftplet onRmdirEnd. |
FtpletEnum |
onRmdirStart(FtpSession session,
FtpRequest request)
Call ftplet onRmdirStart. |
FtpletEnum |
onSite(FtpSession session,
FtpRequest request)
Call ftplet onSite. |
FtpletEnum |
onUploadEnd(FtpSession session,
FtpRequest request)
Call ftplet onUploadEnd. |
FtpletEnum |
onUploadStart(FtpSession session,
FtpRequest request)
Call ftplet onUploadStart. |
FtpletEnum |
onUploadUniqueEnd(FtpSession session,
FtpRequest request)
Call ftplet onUploadUniqueEnd. |
FtpletEnum |
onUploadUniqueStart(FtpSession session,
FtpRequest request)
Call ftplet onUploadUniqueStart. |
Ftplet |
removeFtplet(java.lang.String name)
Remove the Ftplet identified by the name (as
provided in the FtpletContainer.addFtplet(String, Ftplet) method. |
void |
setFtplets(java.util.Map<java.lang.String,Ftplet> ftplets)
Set the Ftplets for this container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFtpletContainer()
Method Detail |
---|
public void dispose()
public void addFtplet(java.lang.String name, Ftplet ftplet)
FtpletContainer
Ftplet
to the container.
addFtplet
in interface FtpletContainer
name
- The name of the Ftplet to be addedftplet
- The Ftpletpublic Ftplet removeFtplet(java.lang.String name)
FtpletContainer
Ftplet
identified by the name (as
provided in the FtpletContainer.addFtplet(String, Ftplet)
method.
removeFtplet
in interface FtpletContainer
name
- The name of the Ftplet to be removed
public Ftplet getFtplet(java.lang.String name)
getFtplet
in interface FtpletContainer
name
- The name of the Ftplet to retrive
public void destroy()
destroy
in interface Ftplet
public FtpletEnum onConnect(FtpSession session) throws FtpException, java.io.IOException
onConnect
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onDisconnect(FtpSession session) throws FtpException, java.io.IOException
onDisconnect
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onLogin(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onLogin
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onDeleteStart(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onDeleteStart
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onDeleteEnd(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onDeleteEnd
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onUploadStart(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onUploadStart
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onUploadEnd(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onUploadEnd
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onDownloadStart(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onDownloadStart
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onDownloadEnd(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onDownloadEnd
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onRmdirStart(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onRmdirStart
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onRmdirEnd(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onRmdirEnd
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onMkdirStart(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onMkdirStart
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onMkdirEnd(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onMkdirEnd
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onAppendStart(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onAppendStart
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onAppendEnd(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onAppendEnd
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onUploadUniqueStart(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onUploadUniqueStart
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onUploadUniqueEnd(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onUploadUniqueEnd
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onRenameStart(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onRenameStart
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onRenameEnd(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onRenameEnd
in interface Ftplet
FtpException
java.io.IOException
public FtpletEnum onSite(FtpSession session, FtpRequest request) throws FtpException, java.io.IOException
onSite
in interface Ftplet
FtpException
java.io.IOException
public void init(FtpletContext ftpletContext) throws FtpException
init
in interface Ftplet
FtpException
public java.util.Map<java.lang.String,Ftplet> getFtplets()
FtpletContainer
getFtplets
in interface FtpletContainer
FtpletContainer.getFtplets()
public void setFtplets(java.util.Map<java.lang.String,Ftplet> ftplets)
FtpletContainer
setFtplets
in interface FtpletContainer
ftplets
- A map of all Ftplets with their name as the keyFtpletContainer.setFtplets(Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |