com.alibaba.dubbo.remoting.transport.mina
Class MinaHandler

java.lang.Object
  extended by org.apache.mina.common.IoHandlerAdapter
      extended by com.alibaba.dubbo.remoting.transport.mina.MinaHandler
All Implemented Interfaces:
org.apache.mina.common.IoHandler

public class MinaHandler
extends org.apache.mina.common.IoHandlerAdapter

MinaHandler

Author:
william.liangf

Constructor Summary
MinaHandler(URL url, ChannelHandler handler)
           
 
Method Summary
 void exceptionCaught(org.apache.mina.common.IoSession session, Throwable cause)
           
 void messageReceived(org.apache.mina.common.IoSession session, Object message)
           
 void messageSent(org.apache.mina.common.IoSession session, Object message)
           
 void sessionClosed(org.apache.mina.common.IoSession session)
           
 void sessionOpened(org.apache.mina.common.IoSession session)
           
 
Methods inherited from class org.apache.mina.common.IoHandlerAdapter
sessionCreated, sessionIdle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinaHandler

public MinaHandler(URL url,
                   ChannelHandler handler)
Method Detail

sessionOpened

public void sessionOpened(org.apache.mina.common.IoSession session)
                   throws Exception
Specified by:
sessionOpened in interface org.apache.mina.common.IoHandler
Overrides:
sessionOpened in class org.apache.mina.common.IoHandlerAdapter
Throws:
Exception

sessionClosed

public void sessionClosed(org.apache.mina.common.IoSession session)
                   throws Exception
Specified by:
sessionClosed in interface org.apache.mina.common.IoHandler
Overrides:
sessionClosed in class org.apache.mina.common.IoHandlerAdapter
Throws:
Exception

messageReceived

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

messageSent

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

exceptionCaught

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


Copyright © 2012–2017 Alibaba. All rights reserved.