org.apache.ftpserver.example.ftpletservice
Class MyFtplet

java.lang.Object
  extended by org.apache.ftpserver.ftplet.DefaultFtplet
      extended by org.apache.ftpserver.example.ftpletservice.MyFtplet
All Implemented Interfaces:
Ftplet

public class MyFtplet
extends DefaultFtplet

Author:
Apache MINA Project*

Constructor Summary
MyFtplet()
           
 
Method Summary
 FtpletResult onConnect(FtpSession session)
          Client connect notification method.
 FtpletResult onDisconnect(FtpSession session)
          Client disconnect notification method.
 
Methods inherited from class org.apache.ftpserver.ftplet.DefaultFtplet
afterCommand, beforeCommand, destroy, init, onAppendEnd, onAppendStart, onDeleteEnd, onDeleteStart, onDownloadEnd, onDownloadStart, onLogin, onMkdirEnd, onMkdirStart, onRenameEnd, onRenameStart, onRmdirEnd, onRmdirStart, onSite, onUploadEnd, onUploadStart, onUploadUniqueEnd, onUploadUniqueStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFtplet

public MyFtplet()
Method Detail

onConnect

public FtpletResult onConnect(FtpSession session)
                       throws FtpException,
                              IOException
Description copied from interface: Ftplet
Client connect notification method.

Specified by:
onConnect in interface Ftplet
Overrides:
onConnect in class DefaultFtplet
Parameters:
session - The current FtpSession
Returns:
The desired action to be performed by the server
Throws:
FtpException
IOException

onDisconnect

public FtpletResult onDisconnect(FtpSession session)
                          throws FtpException,
                                 IOException
Description copied from interface: Ftplet
Client disconnect notification method. This is the last callback method.

Specified by:
onDisconnect in interface Ftplet
Overrides:
onDisconnect in class DefaultFtplet
Parameters:
session - The current FtpSession
Returns:
The desired action to be performed by the server
Throws:
FtpException
IOException


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