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 java.lang.Exception
        Specified by:
        sessionCreated in interface org.apache.mina.core.service.IoHandler
        Overrides:
        sessionCreated in class org.apache.mina.core.service.IoHandlerAdapter
        Throws:
        java.lang.Exception
      • sessionOpened

        public void sessionOpened​(org.apache.mina.core.session.IoSession session)
                           throws java.lang.Exception
        Specified by:
        sessionOpened in interface org.apache.mina.core.service.IoHandler
        Overrides:
        sessionOpened in class org.apache.mina.core.service.IoHandlerAdapter
        Throws:
        java.lang.Exception
      • sessionClosed

        public void sessionClosed​(org.apache.mina.core.session.IoSession session)
                           throws java.lang.Exception
        Specified by:
        sessionClosed in interface org.apache.mina.core.service.IoHandler
        Overrides:
        sessionClosed in class org.apache.mina.core.service.IoHandlerAdapter
        Throws:
        java.lang.Exception
      • sessionIdle

        public void sessionIdle​(org.apache.mina.core.session.IoSession session,
                                org.apache.mina.core.session.IdleStatus status)
                         throws java.lang.Exception
        Specified by:
        sessionIdle in interface org.apache.mina.core.service.IoHandler
        Overrides:
        sessionIdle in class org.apache.mina.core.service.IoHandlerAdapter
        Throws:
        java.lang.Exception
      • exceptionCaught

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

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