public interface FtpHandler
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(FtpIoSession session,
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,
org.apache.ftpserver.ftplet.FtpRequest request)
Invoked when a message is received.
|
void |
messageSent(FtpIoSession session,
org.apache.ftpserver.ftplet.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.
|
void init(FtpServerContext context, Listener listener)
void sessionCreated(FtpIoSession session) throws Exception
Exceptionvoid sessionOpened(FtpIoSession session) throws Exception
sessionCreated(FtpIoSession). The biggest difference from
sessionCreated(FtpIoSession) is that it's invoked from other thread
than an I/O processor thread once thread modesl is configured properly.Exceptionvoid sessionClosed(FtpIoSession session) throws Exception
Exceptionvoid sessionIdle(FtpIoSession session, org.apache.mina.core.session.IdleStatus status) throws Exception
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.Exceptionvoid exceptionCaught(FtpIoSession session, Throwable cause) throws Exception
IoHandler
implementation or by MINA. If cause is instanceof
IOException, MINA will close the connection automatically.Exceptionvoid messageReceived(FtpIoSession session, org.apache.ftpserver.ftplet.FtpRequest request) throws Exception
Exceptionvoid messageSent(FtpIoSession session, org.apache.ftpserver.ftplet.FtpReply reply) throws Exception
IoSession.write(Object) is sent
out.ExceptionCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.