|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.impl.FtpIoSession
public class FtpIoSession
Internal class, do not use directly.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_PREFIX
Contains user name between USER and PASS commands |
Constructor Summary | |
---|---|
FtpIoSession(org.apache.mina.core.session.IoSession wrappedSession,
FtpServerContext context)
|
Method Summary | |
---|---|
org.apache.mina.core.future.CloseFuture |
close()
|
org.apache.mina.core.future.CloseFuture |
close(boolean immediately)
|
boolean |
containsAttribute(java.lang.Object key)
|
java.lang.Object |
getAttachment()
|
java.lang.Object |
getAttribute(java.lang.Object key)
|
java.lang.Object |
getAttribute(java.lang.Object key,
java.lang.Object defaultValue)
|
java.util.Set<java.lang.Object> |
getAttributeKeys()
|
int |
getBothIdleCount()
|
java.security.cert.Certificate[] |
getClientCertificates()
|
org.apache.mina.core.future.CloseFuture |
getCloseFuture()
|
org.apache.mina.core.session.IoSessionConfig |
getConfig()
|
long |
getCreationTime()
|
java.lang.Object |
getCurrentWriteMessage()
|
org.apache.mina.core.write.WriteRequest |
getCurrentWriteRequest()
|
ServerDataConnectionFactory |
getDataConnection()
|
DataType |
getDataType()
|
int |
getFailedLogins()
|
long |
getFileOffset()
|
FileSystemView |
getFileSystemView()
|
org.apache.mina.core.filterchain.IoFilterChain |
getFilterChain()
|
FtpSession |
getFtpletSession()
|
org.apache.mina.core.service.IoHandler |
getHandler()
|
long |
getId()
|
int |
getIdleCount(org.apache.mina.core.session.IdleStatus status)
|
java.lang.String |
getLanguage()
|
java.util.Date |
getLastAccessTime()
|
long |
getLastBothIdleTime()
|
long |
getLastIdleTime(org.apache.mina.core.session.IdleStatus status)
|
long |
getLastIoTime()
|
long |
getLastReaderIdleTime()
|
long |
getLastReadTime()
|
FtpReply |
getLastReply()
Returns the last reply that was sent to the client. |
long |
getLastWriterIdleTime()
|
long |
getLastWriteTime()
|
Listener |
getListener()
|
java.net.SocketAddress |
getLocalAddress()
|
java.util.Date |
getLoginTime()
|
int |
getMaxIdleTime()
|
long |
getReadBytes()
|
double |
getReadBytesThroughput()
|
int |
getReaderIdleCount()
|
long |
getReadMessages()
|
double |
getReadMessagesThroughput()
|
java.net.SocketAddress |
getRemoteAddress()
|
FtpFile |
getRenameFrom()
|
long |
getScheduledWriteBytes()
|
int |
getScheduledWriteMessages()
|
org.apache.mina.core.service.IoService |
getService()
|
java.net.SocketAddress |
getServiceAddress()
|
java.util.UUID |
getSessionId()
|
Structure |
getStructure()
|
org.apache.mina.core.service.TransportMetadata |
getTransportMetadata()
|
User |
getUser()
|
java.lang.String |
getUserArgument()
|
org.apache.mina.core.write.WriteRequestQueue |
getWriteRequestQueue()
|
int |
getWriterIdleCount()
|
long |
getWrittenBytes()
|
double |
getWrittenBytesThroughput()
|
long |
getWrittenMessages()
|
double |
getWrittenMessagesThroughput()
|
void |
increaseFailedLogins()
|
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 |
isBothIdle()
|
boolean |
isClosing()
|
boolean |
isConnected()
|
boolean |
isIdle(org.apache.mina.core.session.IdleStatus status)
|
boolean |
isLoggedIn()
Is logged-in |
boolean |
isReaderIdle()
|
boolean |
isReadSuspended()
|
boolean |
isSecure()
Indicates whether the control socket for this session is secure, that is, running over SSL/TLS |
boolean |
isWriterIdle()
|
boolean |
isWriteSuspended()
|
org.apache.mina.core.future.ReadFuture |
read()
|
void |
reinitialize()
|
java.lang.Object |
removeAttribute(java.lang.Object key)
|
boolean |
removeAttribute(java.lang.Object key,
java.lang.Object value)
|
boolean |
replaceAttribute(java.lang.Object key,
java.lang.Object oldValue,
java.lang.Object newValue)
|
void |
resetState()
|
void |
resumeRead()
|
void |
resumeWrite()
|
java.lang.Object |
setAttachment(java.lang.Object attachment)
|
java.lang.Object |
setAttribute(java.lang.Object key)
|
java.lang.Object |
setAttribute(java.lang.Object key,
java.lang.Object value)
|
java.lang.Object |
setAttributeIfAbsent(java.lang.Object key)
|
java.lang.Object |
setAttributeIfAbsent(java.lang.Object key,
java.lang.Object value)
|
void |
setCurrentWriteRequest(org.apache.mina.core.write.WriteRequest currentWriteRequest)
|
void |
setDataType(DataType dataType)
|
void |
setFileOffset(long fileOffset)
|
void |
setLanguage(java.lang.String language)
|
void |
setListener(Listener listener)
|
void |
setLogin(FileSystemView fsview)
|
void |
setMaxIdleTime(int maxIdleTime)
|
void |
setRenameFrom(FtpFile renFr)
|
void |
setStructure(Structure structure)
|
void |
setUser(User user)
|
void |
setUserArgument(java.lang.String userArgument)
|
void |
suspendRead()
|
void |
suspendWrite()
|
void |
updateLastAccessTime()
|
void |
updateThroughput(long currentTime,
boolean force)
|
org.apache.mina.core.future.WriteFuture |
write(java.lang.Object message)
|
org.apache.mina.core.future.WriteFuture |
write(java.lang.Object message,
java.net.SocketAddress destination)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_PREFIX
Constructor Detail |
---|
public FtpIoSession(org.apache.mina.core.session.IoSession wrappedSession, FtpServerContext context)
Method Detail |
---|
public org.apache.mina.core.future.CloseFuture close()
close
in interface org.apache.mina.core.session.IoSession
IoSession.close()
public org.apache.mina.core.future.CloseFuture close(boolean immediately)
close
in interface org.apache.mina.core.session.IoSession
IoSession.close(boolean)
public boolean containsAttribute(java.lang.Object key)
containsAttribute
in interface org.apache.mina.core.session.IoSession
IoSession.containsAttribute(Object)
public java.lang.Object getAttachment()
getAttachment
in interface org.apache.mina.core.session.IoSession
IoSession.getAttachment()
public java.lang.Object getAttribute(java.lang.Object key)
getAttribute
in interface org.apache.mina.core.session.IoSession
IoSession.getAttribute(Object)
public java.lang.Object getAttribute(java.lang.Object key, java.lang.Object defaultValue)
getAttribute
in interface org.apache.mina.core.session.IoSession
IoSession.getAttribute(Object, Object)
public java.util.Set<java.lang.Object> getAttributeKeys()
getAttributeKeys
in interface org.apache.mina.core.session.IoSession
IoSession.getAttributeKeys()
public int getBothIdleCount()
getBothIdleCount
in interface org.apache.mina.core.session.IoSession
IoSession.getBothIdleCount()
public org.apache.mina.core.future.CloseFuture getCloseFuture()
getCloseFuture
in interface org.apache.mina.core.session.IoSession
IoSession.getCloseFuture()
public org.apache.mina.core.session.IoSessionConfig getConfig()
getConfig
in interface org.apache.mina.core.session.IoSession
IoSession.getConfig()
public long getCreationTime()
getCreationTime
in interface org.apache.mina.core.session.IoSession
IoSession.getCreationTime()
public org.apache.mina.core.filterchain.IoFilterChain getFilterChain()
getFilterChain
in interface org.apache.mina.core.session.IoSession
IoSession.getFilterChain()
public org.apache.mina.core.service.IoHandler getHandler()
getHandler
in interface org.apache.mina.core.session.IoSession
IoSession.getHandler()
public long getId()
getId
in interface org.apache.mina.core.session.IoSession
IoSession.getId()
public int getIdleCount(org.apache.mina.core.session.IdleStatus status)
getIdleCount
in interface org.apache.mina.core.session.IoSession
IoSession.getIdleCount(IdleStatus)
public long getLastBothIdleTime()
getLastBothIdleTime
in interface org.apache.mina.core.session.IoSession
IoSession.getLastBothIdleTime()
public long getLastIdleTime(org.apache.mina.core.session.IdleStatus status)
getLastIdleTime
in interface org.apache.mina.core.session.IoSession
IoSession.getLastIdleTime(IdleStatus)
public long getLastIoTime()
getLastIoTime
in interface org.apache.mina.core.session.IoSession
IoSession.getLastIoTime()
public long getLastReadTime()
getLastReadTime
in interface org.apache.mina.core.session.IoSession
IoSession.getLastReadTime()
public long getLastReaderIdleTime()
getLastReaderIdleTime
in interface org.apache.mina.core.session.IoSession
IoSession.getLastReaderIdleTime()
public long getLastWriteTime()
getLastWriteTime
in interface org.apache.mina.core.session.IoSession
IoSession.getLastWriteTime()
public long getLastWriterIdleTime()
getLastWriterIdleTime
in interface org.apache.mina.core.session.IoSession
IoSession.getLastWriterIdleTime()
public java.net.SocketAddress getLocalAddress()
getLocalAddress
in interface org.apache.mina.core.session.IoSession
IoSession.getLocalAddress()
public long getReadBytes()
getReadBytes
in interface org.apache.mina.core.session.IoSession
IoSession.getReadBytes()
public double getReadBytesThroughput()
getReadBytesThroughput
in interface org.apache.mina.core.session.IoSession
IoSession.getReadBytesThroughput()
public long getReadMessages()
getReadMessages
in interface org.apache.mina.core.session.IoSession
IoSession.getReadMessages()
public double getReadMessagesThroughput()
getReadMessagesThroughput
in interface org.apache.mina.core.session.IoSession
IoSession.getReadMessagesThroughput()
public int getReaderIdleCount()
getReaderIdleCount
in interface org.apache.mina.core.session.IoSession
IoSession.getReaderIdleCount()
public java.net.SocketAddress getRemoteAddress()
getRemoteAddress
in interface org.apache.mina.core.session.IoSession
IoSession.getRemoteAddress()
public long getScheduledWriteBytes()
getScheduledWriteBytes
in interface org.apache.mina.core.session.IoSession
IoSession.getScheduledWriteBytes()
public int getScheduledWriteMessages()
getScheduledWriteMessages
in interface org.apache.mina.core.session.IoSession
IoSession.getScheduledWriteMessages()
public org.apache.mina.core.service.IoService getService()
getService
in interface org.apache.mina.core.session.IoSession
IoSession.getService()
public java.net.SocketAddress getServiceAddress()
getServiceAddress
in interface org.apache.mina.core.session.IoSession
IoSession.getServiceAddress()
public org.apache.mina.core.service.TransportMetadata getTransportMetadata()
getTransportMetadata
in interface org.apache.mina.core.session.IoSession
IoSession.getTransportMetadata()
public int getWriterIdleCount()
getWriterIdleCount
in interface org.apache.mina.core.session.IoSession
IoSession.getWriterIdleCount()
public long getWrittenBytes()
getWrittenBytes
in interface org.apache.mina.core.session.IoSession
IoSession.getWrittenBytes()
public double getWrittenBytesThroughput()
getWrittenBytesThroughput
in interface org.apache.mina.core.session.IoSession
IoSession.getWrittenBytesThroughput()
public long getWrittenMessages()
getWrittenMessages
in interface org.apache.mina.core.session.IoSession
IoSession.getWrittenMessages()
public double getWrittenMessagesThroughput()
getWrittenMessagesThroughput
in interface org.apache.mina.core.session.IoSession
IoSession.getWrittenMessagesThroughput()
public boolean isClosing()
isClosing
in interface org.apache.mina.core.session.IoSession
IoSession.isClosing()
public boolean isConnected()
isConnected
in interface org.apache.mina.core.session.IoSession
IoSession.isConnected()
public boolean isIdle(org.apache.mina.core.session.IdleStatus status)
isIdle
in interface org.apache.mina.core.session.IoSession
IoSession.isIdle(IdleStatus)
public org.apache.mina.core.future.ReadFuture read()
read
in interface org.apache.mina.core.session.IoSession
IoSession.read()
public java.lang.Object removeAttribute(java.lang.Object key)
removeAttribute
in interface org.apache.mina.core.session.IoSession
IoSession.removeAttribute(Object)
public boolean removeAttribute(java.lang.Object key, java.lang.Object value)
removeAttribute
in interface org.apache.mina.core.session.IoSession
IoSession.removeAttribute(Object, Object)
public boolean replaceAttribute(java.lang.Object key, java.lang.Object oldValue, java.lang.Object newValue)
replaceAttribute
in interface org.apache.mina.core.session.IoSession
IoSession.replaceAttribute(Object, Object, Object)
public void resumeRead()
resumeRead
in interface org.apache.mina.core.session.IoSession
IoSession.resumeRead()
public void resumeWrite()
resumeWrite
in interface org.apache.mina.core.session.IoSession
IoSession.resumeWrite()
public java.lang.Object setAttachment(java.lang.Object attachment)
setAttachment
in interface org.apache.mina.core.session.IoSession
IoSession.setAttachment(Object)
public java.lang.Object setAttribute(java.lang.Object key)
setAttribute
in interface org.apache.mina.core.session.IoSession
IoSession.setAttribute(Object)
public java.lang.Object setAttribute(java.lang.Object key, java.lang.Object value)
setAttribute
in interface org.apache.mina.core.session.IoSession
IoSession.setAttribute(Object, Object)
public java.lang.Object setAttributeIfAbsent(java.lang.Object key)
setAttributeIfAbsent
in interface org.apache.mina.core.session.IoSession
IoSession.setAttributeIfAbsent(Object)
public java.lang.Object setAttributeIfAbsent(java.lang.Object key, java.lang.Object value)
setAttributeIfAbsent
in interface org.apache.mina.core.session.IoSession
IoSession.setAttributeIfAbsent(Object, Object)
public void suspendRead()
suspendRead
in interface org.apache.mina.core.session.IoSession
IoSession.suspendRead()
public void suspendWrite()
suspendWrite
in interface org.apache.mina.core.session.IoSession
IoSession.suspendWrite()
public org.apache.mina.core.future.WriteFuture write(java.lang.Object message)
write
in interface org.apache.mina.core.session.IoSession
IoSession.write(Object)
public org.apache.mina.core.future.WriteFuture write(java.lang.Object message, java.net.SocketAddress destination)
write
in interface org.apache.mina.core.session.IoSession
IoSession.write(Object, SocketAddress)
public void resetState()
public ServerDataConnectionFactory getDataConnection()
public FileSystemView getFileSystemView()
public User getUser()
public boolean isLoggedIn()
public Listener getListener()
public void setListener(Listener listener)
public FtpSession getFtpletSession()
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
public java.lang.String getUserArgument()
public void setUser(User user)
public void setUserArgument(java.lang.String userArgument)
public int getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTime)
public void increaseFailedLogins()
public int getFailedLogins()
public void setLogin(FileSystemView fsview)
public void reinitialize()
public void setFileOffset(long fileOffset)
public void setRenameFrom(FtpFile renFr)
public FtpFile getRenameFrom()
public long getFileOffset()
public void setStructure(Structure structure)
public void setDataType(DataType dataType)
public java.util.UUID getSessionId()
FtpSession.getSessionId()
public Structure getStructure()
public DataType getDataType()
public java.util.Date getLoginTime()
public java.util.Date getLastAccessTime()
public java.security.cert.Certificate[] getClientCertificates()
public void updateLastAccessTime()
public java.lang.Object getCurrentWriteMessage()
getCurrentWriteMessage
in interface org.apache.mina.core.session.IoSession
IoSession.getCurrentWriteMessage()
public org.apache.mina.core.write.WriteRequest getCurrentWriteRequest()
getCurrentWriteRequest
in interface org.apache.mina.core.session.IoSession
IoSession.getCurrentWriteRequest()
public boolean isBothIdle()
isBothIdle
in interface org.apache.mina.core.session.IoSession
IoSession.isBothIdle()
public boolean isReaderIdle()
isReaderIdle
in interface org.apache.mina.core.session.IoSession
IoSession.isReaderIdle()
public boolean isWriterIdle()
isWriterIdle
in interface org.apache.mina.core.session.IoSession
IoSession.isWriterIdle()
public boolean isSecure()
public void increaseWrittenDataBytes(int increment)
increment
- The number of bytes writtenpublic void increaseReadDataBytes(int increment)
increment
- The number of bytes writtenpublic FtpReply getLastReply()
public org.apache.mina.core.write.WriteRequestQueue getWriteRequestQueue()
getWriteRequestQueue
in interface org.apache.mina.core.session.IoSession
IoSession.getWriteRequestQueue()
public boolean isReadSuspended()
isReadSuspended
in interface org.apache.mina.core.session.IoSession
IoSession.isReadSuspended()
public boolean isWriteSuspended()
isWriteSuspended
in interface org.apache.mina.core.session.IoSession
IoSession.isWriteSuspended()
public void setCurrentWriteRequest(org.apache.mina.core.write.WriteRequest currentWriteRequest)
setCurrentWriteRequest
in interface org.apache.mina.core.session.IoSession
IoSession.setCurrentWriteRequest(WriteRequest)
public void updateThroughput(long currentTime, boolean force)
updateThroughput
in interface org.apache.mina.core.session.IoSession
IoSession.updateThroughput(long, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |