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,
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.
|
void init(FtpServerContext context, Listener listener)
void sessionCreated(FtpIoSession session) throws Exception
Exception
void sessionOpened(FtpIoSession session) throws Exception
#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.Exception
void sessionClosed(FtpIoSession session) throws Exception
Exception
void 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.Exception
void exceptionCaught(FtpIoSession session, Throwable cause) throws Exception
IoHandler
implementation or by MINA. If cause
is instanceof
IOException
, MINA will close the connection automatically.Exception
void messageReceived(FtpIoSession session, FtpRequest request) throws Exception
Exception
void messageSent(FtpIoSession session, FtpReply reply) throws Exception
IoSession.write(Object)
is sent
out.Exception
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.