FTP-Server API

server.services
Class Session

java.lang.Object
  |
  +--server.services.Session

public class Session
extends Object

The Session object holds all the information needed to make the FTP-Server work. It is a kind of information-holder, and service class for all of the Abstract Commands.


Field Summary
 BigBrother bb
           
 Socket clientCommandSocket
           
 String dataIP
           
 int dataPort
           
 FileHandler fileHandler
           
 FileSystem fileSystem
           
 boolean logedIn
           
 LogFileWriter logFile
           
 boolean mode
           
 String serverIP
           
 int sessionNr
           
 ExtendedUserSession us
           
 XMLTag xml
           
 
Constructor Summary
protected Session(Socket clientCommandSocket, ExtendedUserSession eus, Probe probe)
           
 
Method Summary
protected  void bytesTransmitted(long[] arr)
           
 void commandUpdate(String update, int direction)
           
 void disconnectClient(int reasonCode)
           
protected  void fileTransferEnded(boolean successfull)
           
protected  void fileTransferStarted(FileHandler fileHandler)
           
 String getLogin()
           
 void setAdmin()
           
 void setClientIP()
           
 void setLogedIn(boolean logedIn)
           
 void setUTF(boolean on)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionNr

public int sessionNr

logedIn

public boolean logedIn

mode

public boolean mode

clientCommandSocket

public Socket clientCommandSocket

serverIP

public String serverIP

dataIP

public String dataIP

dataPort

public int dataPort

xml

public XMLTag xml

bb

public BigBrother bb

logFile

public LogFileWriter logFile

fileHandler

public FileHandler fileHandler

fileSystem

public FileSystem fileSystem

us

public ExtendedUserSession us
Constructor Detail

Session

protected Session(Socket clientCommandSocket,
                  ExtendedUserSession eus,
                  Probe probe)
Method Detail

commandUpdate

public void commandUpdate(String update,
                          int direction)

setAdmin

public void setAdmin()

setLogedIn

public void setLogedIn(boolean logedIn)

bytesTransmitted

protected void bytesTransmitted(long[] arr)

fileTransferEnded

protected void fileTransferEnded(boolean successfull)

fileTransferStarted

protected void fileTransferStarted(FileHandler fileHandler)

setClientIP

public void setClientIP()

getLogin

public String getLogin()

disconnectClient

public void disconnectClient(int reasonCode)

setUTF

public void setUTF(boolean on)

FTP-Server API