|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FtpSession
Defines an client session with the FTP server. The session is born
when the client connects and dies when the client disconnects.
Ftplet methods will always get the same session for one user and one
connection.
So the attributes set by setAttribute()
will be always
available later unless that attribute is removed or the client disconnects.
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists. |
java.net.InetAddress |
getClientAddress()
Returns the IP address of the client that sent the request. |
java.security.cert.Certificate[] |
getClientCertificates()
|
java.util.Date |
getConnectionTime()
Get connection time. |
DataConnectionFactory |
getDataConnection()
Get FTP data connection. |
DataType |
getDataType()
Get the data type. |
int |
getFailedLogins()
Get the number of failed logins. |
long |
getFileOffset()
Get file upload/download offset. |
FileSystemView |
getFileSystemView()
Get user file system view. |
java.lang.String |
getLanguage()
Get the requested language. |
java.util.Date |
getLastAccessTime()
Get last access time. |
java.util.Date |
getLoginTime()
Get the login time. |
int |
getMaxIdleTime()
Returns maximum idle time. |
FileObject |
getRenameFrom()
Get rename from file object. |
java.net.InetAddress |
getServerAddress()
|
int |
getServerPort()
|
Structure |
getStructure()
Get structure. |
User |
getUser()
Get user object. |
java.lang.String |
getUserArgument()
Returns user name entered in USER command |
boolean |
isLoggedIn()
Is the user logged in? |
void |
removeAttribute(java.lang.String name)
Removes an attribute from this request. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Stores an attribute in this request. |
void |
setMaxIdleTime(int maxIdleTimeSec)
Set maximum idle time in seconds. |
Method Detail |
---|
java.net.InetAddress getClientAddress()
java.net.InetAddress getServerAddress()
int getServerPort()
DataConnectionFactory getDataConnection()
java.security.cert.Certificate[] getClientCertificates()
java.util.Date getConnectionTime()
java.util.Date getLoginTime()
int getFailedLogins()
java.util.Date getLastAccessTime()
int getMaxIdleTime()
ConnectionManagerImpl#getDefaultIdleSec()
until user login, and
User.getMaxIdleTime()
after user login.
void setMaxIdleTime(int maxIdleTimeSec)
ConnectionManagerImpl#getDefaultIdleSec()
until user login, and
User.getMaxIdleTime()
after user login.
User getUser()
java.lang.String getUserArgument()
java.lang.String getLanguage()
boolean isLoggedIn()
FileSystemView getFileSystemView()
long getFileOffset()
FileObject getRenameFrom()
DataType getDataType()
Structure getStructure()
java.lang.Object getAttribute(java.lang.String name)
void setAttribute(java.lang.String name, java.lang.Object value)
void removeAttribute(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |