Class SimpleServerHandler
- java.lang.Object
-
- org.apache.mina.core.service.IoHandlerAdapter
-
- org.opennms.netmgt.provision.server.SimpleServerHandler
-
- All Implemented Interfaces:
org.apache.mina.core.service.IoHandler
public class SimpleServerHandler extends org.apache.mina.core.service.IoHandlerAdapter
SimpleServerHandler class.
- Version:
- $Id: $
- Author:
- thedesloge
-
-
Constructor Summary
Constructors Constructor Description SimpleServerHandler(LineConversation conversation)
Constructor for SimpleServerHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exceptionCaught(org.apache.mina.core.session.IoSession session, Throwable cause)
void
messageReceived(org.apache.mina.core.session.IoSession session, Object message)
void
sessionIdle(org.apache.mina.core.session.IoSession session, org.apache.mina.core.session.IdleStatus status)
void
sessionOpened(org.apache.mina.core.session.IoSession session)
-
-
-
Constructor Detail
-
SimpleServerHandler
public SimpleServerHandler(LineConversation conversation)
Constructor for SimpleServerHandler.
- Parameters:
conversation
- aLineConversation
object.
-
-
Method Detail
-
exceptionCaught
public void exceptionCaught(org.apache.mina.core.session.IoSession session, Throwable cause) throws Exception
- Specified by:
exceptionCaught
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
exceptionCaught
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
sessionOpened
public void sessionOpened(org.apache.mina.core.session.IoSession session) throws Exception
- Specified by:
sessionOpened
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
sessionOpened
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
messageReceived
public void messageReceived(org.apache.mina.core.session.IoSession session, Object message) throws Exception
- Specified by:
messageReceived
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
messageReceived
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
sessionIdle
public void sessionIdle(org.apache.mina.core.session.IoSession session, org.apache.mina.core.session.IdleStatus status) throws Exception
- Specified by:
sessionIdle
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
sessionIdle
in classorg.apache.mina.core.service.IoHandlerAdapter
- Throws:
Exception
-
-