public class DefaultFtpSession extends Object implements org.apache.ftpserver.ftplet.FtpSession
| Constructor and Description |
|---|
DefaultFtpSession(FtpIoSession ioSession)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
Get attribute
|
InetSocketAddress |
getClientAddress()
Get remote address
|
Certificate[] |
getClientCertificates() |
Date |
getConnectionTime()
Get connection time.
|
org.apache.ftpserver.ftplet.DataConnectionFactory |
getDataConnection()
Get FTP data connection.
|
org.apache.ftpserver.ftplet.DataType |
getDataType()
Get the data type.
|
int |
getFailedLogins() |
long |
getFileOffset()
Get file offset.
|
org.apache.ftpserver.ftplet.FileSystemView |
getFileSystemView()
Get file system view.
|
String |
getLanguage()
Get language.
|
Date |
getLastAccessTime()
Get last access time.
|
Date |
getLoginTime()
Get the login time.
|
int |
getMaxIdleTime() |
org.apache.ftpserver.ftplet.FtpFile |
getRenameFrom()
Get rename from file object.
|
InetSocketAddress |
getServerAddress() |
UUID |
getSessionId() |
org.apache.ftpserver.ftplet.Structure |
getStructure()
Get structure.
|
org.apache.ftpserver.ftplet.User |
getUser()
Get user.
|
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(String name) |
void |
setAttribute(String name,
Object value)
Set attribute.
|
void |
setMaxIdleTime(int maxIdleTime) |
void |
write(org.apache.ftpserver.ftplet.FtpReply reply) |
public DefaultFtpSession(FtpIoSession ioSession)
public boolean isLoggedIn()
isLoggedIn in interface org.apache.ftpserver.ftplet.FtpSessionpublic org.apache.ftpserver.ftplet.DataConnectionFactory getDataConnection()
getDataConnection in interface org.apache.ftpserver.ftplet.FtpSessionpublic org.apache.ftpserver.ftplet.FileSystemView getFileSystemView()
getFileSystemView in interface org.apache.ftpserver.ftplet.FtpSessionpublic Date getConnectionTime()
getConnectionTime in interface org.apache.ftpserver.ftplet.FtpSessionpublic Date getLoginTime()
getLoginTime in interface org.apache.ftpserver.ftplet.FtpSessionpublic Date getLastAccessTime()
getLastAccessTime in interface org.apache.ftpserver.ftplet.FtpSessionpublic long getFileOffset()
getFileOffset in interface org.apache.ftpserver.ftplet.FtpSessionpublic org.apache.ftpserver.ftplet.FtpFile getRenameFrom()
getRenameFrom in interface org.apache.ftpserver.ftplet.FtpSessionpublic String getUserArgument()
getUserArgument in interface org.apache.ftpserver.ftplet.FtpSessionpublic String getLanguage()
getLanguage in interface org.apache.ftpserver.ftplet.FtpSessionpublic org.apache.ftpserver.ftplet.User getUser()
getUser in interface org.apache.ftpserver.ftplet.FtpSessionpublic InetSocketAddress getClientAddress()
getClientAddress in interface org.apache.ftpserver.ftplet.FtpSessionpublic Object getAttribute(String name)
getAttribute in interface org.apache.ftpserver.ftplet.FtpSessionpublic void setAttribute(String name, Object value)
setAttribute in interface org.apache.ftpserver.ftplet.FtpSessionpublic int getMaxIdleTime()
getMaxIdleTime in interface org.apache.ftpserver.ftplet.FtpSessionpublic void setMaxIdleTime(int maxIdleTime)
setMaxIdleTime in interface org.apache.ftpserver.ftplet.FtpSessionpublic org.apache.ftpserver.ftplet.DataType getDataType()
getDataType in interface org.apache.ftpserver.ftplet.FtpSessionpublic org.apache.ftpserver.ftplet.Structure getStructure()
getStructure in interface org.apache.ftpserver.ftplet.FtpSessionpublic Certificate[] getClientCertificates()
getClientCertificates in interface org.apache.ftpserver.ftplet.FtpSessionpublic InetSocketAddress getServerAddress()
getServerAddress in interface org.apache.ftpserver.ftplet.FtpSessionpublic int getFailedLogins()
getFailedLogins in interface org.apache.ftpserver.ftplet.FtpSessionpublic void removeAttribute(String name)
removeAttribute in interface org.apache.ftpserver.ftplet.FtpSessionpublic void write(org.apache.ftpserver.ftplet.FtpReply reply)
throws org.apache.ftpserver.ftplet.FtpException
write in interface org.apache.ftpserver.ftplet.FtpSessionorg.apache.ftpserver.ftplet.FtpExceptionpublic boolean isSecure()
isSecure in interface org.apache.ftpserver.ftplet.FtpSessionpublic void increaseWrittenDataBytes(int increment)
increment - The number of bytes writtenpublic void increaseReadDataBytes(int increment)
increment - The number of bytes writtenpublic UUID getSessionId()
getSessionId in interface org.apache.ftpserver.ftplet.FtpSessionCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.