Class 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 Detail

      • SimpleServerHandler

        public SimpleServerHandler​(LineConversation conversation)

        Constructor for SimpleServerHandler.

        Parameters:
        conversation - a LineConversation object.
    • Method Detail

      • exceptionCaught

        public void exceptionCaught​(org.apache.mina.core.session.IoSession session,
                                    Throwable cause)
                             throws Exception
        Specified by:
        exceptionCaught in interface org.apache.mina.core.service.IoHandler
        Overrides:
        exceptionCaught in class org.apache.mina.core.service.IoHandlerAdapter
        Throws:
        Exception
      • sessionOpened

        public void sessionOpened​(org.apache.mina.core.session.IoSession session)
                           throws Exception
        Specified by:
        sessionOpened in interface org.apache.mina.core.service.IoHandler
        Overrides:
        sessionOpened in class org.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 interface org.apache.mina.core.service.IoHandler
        Overrides:
        messageReceived in class org.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 interface org.apache.mina.core.service.IoHandler
        Overrides:
        sessionIdle in class org.apache.mina.core.service.IoHandlerAdapter
        Throws:
        Exception