org.apache.ftpserver.example.ftpletservice
Class MyFtplet
java.lang.Object
org.apache.ftpserver.ftplet.DefaultFtplet
org.apache.ftpserver.example.ftpletservice.MyFtplet
- All Implemented Interfaces:
- Ftplet
public class MyFtplet
- extends DefaultFtplet
- Author:
- Apache MINA Project*
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 |
MyFtplet
public MyFtplet()
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.