|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.Prominic.jFTPd.FTPEvent
public class FTPEvent
This is the [single] event that propagates inside the jFTPd. It is used for logging purposes, as an Observer is able to receive the events and log them.
| Field Summary | |
|---|---|
protected int |
action
|
protected java.net.InetAddress |
address
|
protected java.lang.Object[] |
args
|
static int |
CHANGE_DIR
Sent after a change directory command. |
static int |
CONNECT
Sent when an user connects to the FTP server. |
static int |
CREATE_DIR
Sent after an mkdir command. |
protected java.util.Date |
date
|
static int |
DELETE
Sent after a DELE command. |
static int |
DISCONNECTED
Sent after detecting that the conenction to the client has ended (ungracefully). |
static int |
DOWNLOAD_BEGIN
Sent after a file download begins. |
static int |
DOWNLOAD_END
Sent after the download ends successfully. |
static int |
DOWNLOAD_ERROR
|
static int |
ERROR_MIN
A tag value for error. |
static int |
HOME_NOT_FOUND
|
static int |
INFO
|
static int |
LOGIN
Sent after a successfull login. |
static int |
LOGIN_FAILED
Sent after a failed login. |
static int |
MISC_ERROR
|
static int |
QUIT
Sent after a QUIT command. |
static int |
REMOVE_DIR
Sent after a directory is removed. |
static int |
RENAME
Sent after a rename command. |
static int |
UPLOAD_BEGIN
Sent after an upload begins. |
static int |
UPLOAD_END
Sent after an upload ends. |
static int |
UPLOAD_ERROR
|
protected FTPUser |
user
|
| Constructor Summary | |
|---|---|
FTPEvent(FTPUser user,
java.net.InetAddress address,
int action,
java.lang.Object[] args)
Default constructor. |
|
| Method Summary | |
|---|---|
int |
getAction()
Gets the event's type. |
java.net.InetAddress |
getAddress()
Gets the user's address - passed via the constructor. |
java.lang.Object[] |
getArguments()
Gets the action's arguments. |
java.util.Date |
getDate()
Returns the time of the event. |
FTPUser |
getUser()
Returns the user for whom the event has been generated. |
boolean |
isErrorEvent()
Checks if the event is an error event (the action is greater than FTPEvent.ERROR_MIN). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CONNECT
public static final int LOGIN
public static final int LOGIN_FAILED
public static final int CHANGE_DIR
public static final int DOWNLOAD_BEGIN
public static final int DOWNLOAD_END
public static final int UPLOAD_BEGIN
public static final int UPLOAD_END
public static final int CREATE_DIR
public static final int DELETE
public static final int REMOVE_DIR
public static final int RENAME
public static final int QUIT
public static final int DISCONNECTED
public static final int INFO
public static final int ERROR_MIN
public static final int HOME_NOT_FOUND
public static final int MISC_ERROR
public static final int DOWNLOAD_ERROR
public static final int UPLOAD_ERROR
protected FTPUser user
protected java.net.InetAddress address
protected int action
protected java.lang.Object[] args
protected java.util.Date date
| Constructor Detail |
|---|
public FTPEvent(FTPUser user,
java.net.InetAddress address,
int action,
java.lang.Object[] args)
user - - user to which the connection belongs to.address - - address from which the user connected.action - - FTPEvent.XXXXXXXXX values (Event type).| Method Detail |
|---|
public int getAction()
public java.net.InetAddress getAddress()
public java.lang.Object[] getArguments()
public java.util.Date getDate()
public FTPUser getUser()
public boolean isErrorEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||