ch.e2e.examples.ftpservice
Class FtpServiceCallbackFtplet

java.lang.Object
  extended by DefaultFtplet
      extended by ch.e2e.examples.ftpservice.FtpServiceCallbackFtplet

public class FtpServiceCallbackFtplet
extends DefaultFtplet

Copyright © 2001-2006 E2E technologies Ltd. All rights reserved.

Version:
$Revision: 1.3 $
Author:
tzimber

Field Summary
private  FtpServerCallback serverCallback
           
 
Constructor Summary
FtpServiceCallbackFtplet(FtpServerCallback serverCallback)
           
 
Method Summary
 FtpletResult afterCommand(FtpSession ftpSession, FtpRequest ftpRequest, FtpReply reply)
           
 FtpletResult beforeCommand(FtpSession ftpSession, FtpRequest ftpRequest)
           
private  BridgeUser createCallbackUser(FtpSession ftpSession)
           
private  java.io.File createFile(java.lang.String filename, FtpSession ftpSession)
           
private  java.io.File getRequestedFile(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onAppendEnd(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onAppendStart(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onConnect(FtpSession ftpSession)
           
 FtpletResult onDeleteEnd(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onDeleteStart(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onDisconnect(FtpSession ftpSession)
           
 FtpletResult onDownloadEnd(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onDownloadStart(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onLogin(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onMkdirEnd(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onMkdirStart(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onRenameEnd(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onRenameStart(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onRmdirEnd(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onRmdirStart(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onUploadEnd(FtpSession ftpSession, FtpRequest ftpRequest)
           
 FtpletResult onUploadStart(FtpSession ftpSession, FtpRequest ftpRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverCallback

private FtpServerCallback serverCallback
Constructor Detail

FtpServiceCallbackFtplet

public FtpServiceCallbackFtplet(FtpServerCallback serverCallback)
Method Detail

afterCommand

public FtpletResult afterCommand(FtpSession ftpSession,
                                 FtpRequest ftpRequest,
                                 FtpReply reply)
                          throws FtpException,
                                 java.io.IOException
Throws:
FtpException
java.io.IOException

beforeCommand

public FtpletResult beforeCommand(FtpSession ftpSession,
                                  FtpRequest ftpRequest)
                           throws FtpException,
                                  java.io.IOException
Throws:
FtpException
java.io.IOException

onAppendEnd

public FtpletResult onAppendEnd(FtpSession ftpSession,
                                FtpRequest ftpRequest)
                         throws FtpException,
                                java.io.IOException
Throws:
FtpException
java.io.IOException

onAppendStart

public FtpletResult onAppendStart(FtpSession ftpSession,
                                  FtpRequest ftpRequest)
                           throws FtpException,
                                  java.io.IOException
Throws:
FtpException
java.io.IOException

onConnect

public FtpletResult onConnect(FtpSession ftpSession)
                       throws FtpException,
                              java.io.IOException
Throws:
FtpException
java.io.IOException

onDisconnect

public FtpletResult onDisconnect(FtpSession ftpSession)
                          throws FtpException,
                                 java.io.IOException
Throws:
FtpException
java.io.IOException

onDownloadEnd

public FtpletResult onDownloadEnd(FtpSession ftpSession,
                                  FtpRequest ftpRequest)
                           throws FtpException,
                                  java.io.IOException
Throws:
FtpException
java.io.IOException

onDownloadStart

public FtpletResult onDownloadStart(FtpSession ftpSession,
                                    FtpRequest ftpRequest)
                             throws FtpException,
                                    java.io.IOException
Throws:
FtpException
java.io.IOException

onDeleteEnd

public FtpletResult onDeleteEnd(FtpSession ftpSession,
                                FtpRequest ftpRequest)
                         throws FtpException,
                                java.io.IOException
Throws:
FtpException
java.io.IOException

onDeleteStart

public FtpletResult onDeleteStart(FtpSession ftpSession,
                                  FtpRequest ftpRequest)
                           throws FtpException,
                                  java.io.IOException
Throws:
FtpException
java.io.IOException

onLogin

public FtpletResult onLogin(FtpSession ftpSession,
                            FtpRequest ftpRequest)
                     throws FtpException,
                            java.io.IOException
Throws:
FtpException
java.io.IOException

onMkdirEnd

public FtpletResult onMkdirEnd(FtpSession ftpSession,
                               FtpRequest ftpRequest)
                        throws FtpException,
                               java.io.IOException
Throws:
FtpException
java.io.IOException

onMkdirStart

public FtpletResult onMkdirStart(FtpSession ftpSession,
                                 FtpRequest ftpRequest)
                          throws FtpException,
                                 java.io.IOException
Throws:
FtpException
java.io.IOException

onRenameEnd

public FtpletResult onRenameEnd(FtpSession ftpSession,
                                FtpRequest ftpRequest)
                         throws FtpException,
                                java.io.IOException
Throws:
FtpException
java.io.IOException

onRenameStart

public FtpletResult onRenameStart(FtpSession ftpSession,
                                  FtpRequest ftpRequest)
                           throws FtpException,
                                  java.io.IOException
Throws:
FtpException
java.io.IOException

onRmdirEnd

public FtpletResult onRmdirEnd(FtpSession ftpSession,
                               FtpRequest ftpRequest)
                        throws FtpException,
                               java.io.IOException
Throws:
FtpException
java.io.IOException

onRmdirStart

public FtpletResult onRmdirStart(FtpSession ftpSession,
                                 FtpRequest ftpRequest)
                          throws FtpException,
                                 java.io.IOException
Throws:
FtpException
java.io.IOException

onUploadEnd

public FtpletResult onUploadEnd(FtpSession ftpSession,
                                FtpRequest ftpRequest)
                         throws FtpException,
                                java.io.IOException
Throws:
FtpException
java.io.IOException

onUploadStart

public FtpletResult onUploadStart(FtpSession ftpSession,
                                  FtpRequest ftpRequest)
                           throws FtpException,
                                  java.io.IOException
Throws:
FtpException
java.io.IOException

createCallbackUser

private BridgeUser createCallbackUser(FtpSession ftpSession)

getRequestedFile

private java.io.File getRequestedFile(FtpSession ftpSession,
                                      FtpRequest ftpRequest)

createFile

private java.io.File createFile(java.lang.String filename,
                                FtpSession ftpSession)


Copyright © 2006 E2E Technologies Ltd. All Rights Reserved.