|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ftpserver.impl.DefaultFtpSession
public class DefaultFtpSession
Internal class, do not use directly. FTP session
| Constructor Summary | |
|---|---|
DefaultFtpSession(FtpIoSession ioSession)
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Get attribute |
java.net.InetSocketAddress |
getClientAddress()
Get remote address |
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()
|
long |
getFileOffset()
Get file offset. |
FileSystemView |
getFileSystemView()
Get file system view. |
java.lang.String |
getLanguage()
Get language. |
java.util.Date |
getLastAccessTime()
Get last access time. |
java.util.Date |
getLoginTime()
Get the login time. |
int |
getMaxIdleTime()
|
FtpFile |
getRenameFrom()
Get rename from file object. |
java.net.InetSocketAddress |
getServerAddress()
|
java.util.UUID |
getSessionId()
|
Structure |
getStructure()
Get structure. |
User |
getUser()
Get user. |
java.lang.String |
getUserArgument()
Returns user name entered in USER command |
void |
increaseReadDataBytes(int increment)
Increase the number of bytes read on the data connection |
void |
increaseWrittenDataBytes(int increment)
Increase the number of bytes written on the data connection |
boolean |
isLoggedIn()
Is logged-in |
boolean |
isSecure()
|
void |
removeAttribute(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set attribute. |
void |
setMaxIdleTime(int maxIdleTime)
|
void |
write(FtpReply reply)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFtpSession(FtpIoSession ioSession)
| Method Detail |
|---|
public boolean isLoggedIn()
isLoggedIn in interface FtpSessionpublic DataConnectionFactory getDataConnection()
getDataConnection in interface FtpSessionpublic FileSystemView getFileSystemView()
getFileSystemView in interface FtpSessionpublic java.util.Date getConnectionTime()
getConnectionTime in interface FtpSessionpublic java.util.Date getLoginTime()
getLoginTime in interface FtpSessionpublic java.util.Date getLastAccessTime()
getLastAccessTime in interface FtpSessionpublic long getFileOffset()
getFileOffset in interface FtpSessionpublic FtpFile getRenameFrom()
getRenameFrom in interface FtpSessionpublic java.lang.String getUserArgument()
getUserArgument in interface FtpSessionpublic java.lang.String getLanguage()
getLanguage in interface FtpSessionpublic User getUser()
getUser in interface FtpSessionpublic java.net.InetSocketAddress getClientAddress()
getClientAddress in interface FtpSessionpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface FtpSession
public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface FtpSessionpublic int getMaxIdleTime()
getMaxIdleTime in interface FtpSessionpublic void setMaxIdleTime(int maxIdleTime)
setMaxIdleTime in interface FtpSessionpublic DataType getDataType()
getDataType in interface FtpSessionpublic Structure getStructure()
getStructure in interface FtpSessionpublic java.security.cert.Certificate[] getClientCertificates()
getClientCertificates in interface FtpSessionpublic java.net.InetSocketAddress getServerAddress()
getServerAddress in interface FtpSessionpublic int getFailedLogins()
getFailedLogins in interface FtpSessionpublic void removeAttribute(java.lang.String name)
removeAttribute in interface FtpSession
public void write(FtpReply reply)
throws FtpException
write in interface FtpSessionFtpExceptionpublic boolean isSecure()
isSecure in interface FtpSessionpublic void increaseWrittenDataBytes(int increment)
increment - The number of bytes writtenpublic void increaseReadDataBytes(int increment)
increment - The number of bytes writtenpublic java.util.UUID getSessionId()
getSessionId in interface FtpSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||