public abstract class AbstractProxyIoHandler extends IoHandlerAdapter
IoHandler
classes which handle
proxied connections.Modifier and Type | Field and Description |
---|---|
static String |
OTHER_IO_SESSION |
Constructor and Description |
---|
AbstractProxyIoHandler() |
Modifier and Type | Method and Description |
---|---|
void |
messageReceived(IoSession session,
Object message)
Invoked when a message is received.
|
void |
sessionClosed(IoSession session)
Invoked when a connection is closed.
|
void |
sessionCreated(IoSession session)
Invoked from an I/O processor thread when a new connection has been created.
|
exceptionCaught, inputClosed, messageSent, sessionIdle, sessionOpened
public static final String OTHER_IO_SESSION
public AbstractProxyIoHandler()
public void sessionCreated(IoSession session) throws Exception
sessionCreated
in interface IoHandler
sessionCreated
in class IoHandlerAdapter
session
- The session being createdException
- If we get an exception while processing the create eventpublic void sessionClosed(IoSession session) throws Exception
sessionClosed
in interface IoHandler
sessionClosed
in class IoHandlerAdapter
session
- The session being closedException
- If we get an exception while processing the close eventpublic void messageReceived(IoSession session, Object message) throws Exception
messageReceived
in interface IoHandler
messageReceived
in class IoHandlerAdapter
session
- The session that is receiving a messagemessage
- The received messageException
- If we get an exception while processing the received messageCopyright © 2004–2016 Apache MINA Project. All rights reserved.