Class BaseDetectorHandler<Request,​Response>

  • All Implemented Interfaces:
    org.apache.mina.core.service.IoHandler
    Direct Known Subclasses:
    TcpDetectorHandler

    public class BaseDetectorHandler<Request,​Response>
    extends org.apache.mina.core.service.IoHandlerAdapter

    BaseDetectorHandler class.

    Version:
    $Id: $
    Author:
    Donald Desloge
    • Constructor Detail

      • BaseDetectorHandler

        public BaseDetectorHandler()
    • Method Detail

      • setFuture

        public void setFuture​(DetectFutureMinaImpl future)

        setFuture

        Type Parameters:
        Request - a Request object.
        Response - a Response object.
        Parameters:
        future - a DetectFuture object.
      • sessionCreated

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