net.sf.hermesftp.session
Interface FtpSession

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
FtpSessionImpl

public interface FtpSession
extends java.lang.Runnable

Interface for FTP session implementations.

Author:
Lars Behnke

Method Summary
 void abort()
          Aborts the client session.
 FtpSessionContext getFtpContext()
          Returns the FTP Context, that contains all the shared settings of a FTP session.
 boolean isTerminated()
          Indicates whether the session is still alive or has been terminated.
 void setCmdReader(FtpCmdReader reader)
          Sets the object providing the client's commands.
 void setFtpContext(FtpSessionContext ctx)
          Sets the FTP Context, that contains all the shared settings of a FTP session.
 void start()
          Starts the client session.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setFtpContext

void setFtpContext(FtpSessionContext ctx)
Sets the FTP Context, that contains all the shared settings of a FTP session.

Parameters:
ctx - The FTP context.

getFtpContext

FtpSessionContext getFtpContext()
Returns the FTP Context, that contains all the shared settings of a FTP session.

Returns:
ctx The FTP context.

setCmdReader

void setCmdReader(FtpCmdReader reader)
Sets the object providing the client's commands. The bean is set by the Spring Framework.

Parameters:
reader - The FTP command reader thread.

isTerminated

boolean isTerminated()
Indicates whether the session is still alive or has been terminated.

Returns:
True, if the session is alive.

start

void start()
Starts the client session.


abort

void abort()
Aborts the client session.



Copyright © 2005-2007 Lars Behnke. All Rights Reserved.