Class ConnectionHandler

    • Method Detail

      • 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
      • sessionClosed

        public void sessionClosed​(org.apache.mina.core.session.IoSession session)
                           throws Exception
        Specified by:
        sessionClosed in interface org.apache.mina.core.service.IoHandler
        Overrides:
        sessionClosed 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
        Invoked when a MINA session has been idle for half of the allowed XMPP session idle time as specified by getMaxIdleTime(). This method will be invoked each time that such a period passes (even if no IO has occurred in between). Openfire will disconnect a session the second time this method is invoked, if no IO has occurred between the first and second invocation. This allows extensions of this class to use the first invocation to check for livelyness of the MINA session (e.g by polling the remote entity, as ClientConnectionHandler does).
        Specified by:
        sessionIdle in interface org.apache.mina.core.service.IoHandler
        Overrides:
        sessionIdle in class org.apache.mina.core.service.IoHandlerAdapter
        Throws:
        Exception
        See Also:
        IoHandlerAdapter.sessionIdle(IoSession, IdleStatus)
      • 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
      • 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
      • messageSent

        public void messageSent​(org.apache.mina.core.session.IoSession session,
                                Object message)
                         throws Exception
        Specified by:
        messageSent in interface org.apache.mina.core.service.IoHandler
        Overrides:
        messageSent in class org.apache.mina.core.service.IoHandlerAdapter
        Throws:
        Exception