FTP-Server API

server
Class LogFileSession

java.lang.Object
  |
  +--server.LogFileSession
All Implemented Interfaces:
Session

public class LogFileSession
extends Object
implements Session

The class represents a single session fetched from a logfile. It should be obtained though LogFileReader.


Constructor Summary
protected LogFileSession(String login, int sessionNr, String ip, String time, Vector conversation)
          Makes a new LogFileSession
 
Method Summary
 boolean equals(LogFileSession logFileSession)
          Compares this object to another.
 String getClientIP()
          The clients ip.
 Vector getConversation()
          Al communication between the client and the server.
 String getLogin()
          The clients loginname.
 String getLogonTime()
          The time the client logged onto the server.
 int getSessionNr()
          The sessionnumber, that this sessionnumber has.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFileSession

protected LogFileSession(String login,
                         int sessionNr,
                         String ip,
                         String time,
                         Vector conversation)
Makes a new LogFileSession

Parameters:
login - loginname
sessionNr - autogenerated number
ip - ip-address
time - of login
conversation - the clients conversation with the server
Method Detail

equals

public boolean equals(LogFileSession logFileSession)
Compares this object to another. The criterias is that login, sessionNr, ip, and time is alike int the two objects. The conversations between the two objects are NOT compared of performance considerations.

Parameters:
logFileSession - tje object that should be compared whith,
Returns:
true if the two are alike

getLogin

public String getLogin()
Description copied from interface: Session
The clients loginname.

Specified by:
getLogin in interface Session
Returns:
loginname

getClientIP

public String getClientIP()
Description copied from interface: Session
The clients ip.

Specified by:
getClientIP in interface Session
Returns:
ip

getLogonTime

public String getLogonTime()
Description copied from interface: Session
The time the client logged onto the server. The format is: D. 23.05.2002 kl. 18:00:27

Specified by:
getLogonTime in interface Session
Returns:
date+time

getSessionNr

public int getSessionNr()
Description copied from interface: Session
The sessionnumber, that this sessionnumber has.

Specified by:
getSessionNr in interface Session
Returns:
number

getConversation

public Vector getConversation()
Description copied from interface: Session
Al communication between the client and the server.

Specified by:
getConversation in interface Session
Returns:
each object in the vector represents a line.

FTP-Server API