|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.impl.DefaultFtpHandler
public class DefaultFtpHandler
Internal class, do not use directly.
Constructor Summary | |
---|---|
DefaultFtpHandler()
|
Method Summary | |
---|---|
void |
exceptionCaught(FtpIoSession session,
java.lang.Throwable cause)
Invoked when any exception is thrown by user IoHandler
implementation or by MINA. |
void |
init(FtpServerContext context,
Listener listener)
|
void |
messageReceived(FtpIoSession session,
FtpRequest request)
Invoked when a message is received. |
void |
messageSent(FtpIoSession session,
FtpReply reply)
Invoked when a message written by IoSession.write(Object) is sent
out. |
void |
sessionClosed(FtpIoSession session)
Invoked when a connection is closed. |
void |
sessionCreated(FtpIoSession session)
Invoked from an I/O processor thread when a new connection has been created. |
void |
sessionIdle(FtpIoSession session,
org.apache.mina.core.session.IdleStatus status)
Invoked with the related IdleStatus when a connection becomes
idle. |
void |
sessionOpened(FtpIoSession session)
Invoked when a connection has been opened. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFtpHandler()
Method Detail |
---|
public void init(FtpServerContext context, Listener listener)
init
in interface FtpHandler
public void sessionCreated(FtpIoSession session) throws java.lang.Exception
FtpHandler
sessionCreated
in interface FtpHandler
java.lang.Exception
public void sessionOpened(FtpIoSession session) throws java.lang.Exception
FtpHandler
#sessionCreated(IoSession)
. The biggest difference from
#sessionCreated(IoSession)
is that it's invoked from other thread
than an I/O processor thread once thread modesl is configured properly.
sessionOpened
in interface FtpHandler
java.lang.Exception
public void sessionClosed(FtpIoSession session) throws java.lang.Exception
FtpHandler
sessionClosed
in interface FtpHandler
java.lang.Exception
public void exceptionCaught(FtpIoSession session, java.lang.Throwable cause) throws java.lang.Exception
FtpHandler
IoHandler
implementation or by MINA. If cause
is instanceof
IOException
, MINA will close the connection automatically.
exceptionCaught
in interface FtpHandler
java.lang.Exception
public void messageReceived(FtpIoSession session, FtpRequest request) throws java.lang.Exception
FtpHandler
messageReceived
in interface FtpHandler
java.lang.Exception
public void sessionIdle(FtpIoSession session, org.apache.mina.core.session.IdleStatus status) throws java.lang.Exception
FtpHandler
IdleStatus
when a connection becomes
idle. This method is not invoked if the transport type is UDP; it's a
known bug, and will be fixed in 2.0.
sessionIdle
in interface FtpHandler
java.lang.Exception
public void messageSent(FtpIoSession session, FtpReply reply) throws java.lang.Exception
FtpHandler
IoSession.write(Object)
is sent
out.
messageSent
in interface FtpHandler
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |