directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Directory Wiki] Update of "MinaTutorial" by sishen
Date Tue, 31 Oct 2006 10:11:49 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Directory Wiki" for change notification.

The following page has been changed by sishen:
http://wiki.apache.org/directory/MinaTutorial

------------------------------------------------------------------------------
  {{{
  package org.apache.mina.examples.reverser;
  
- import org.apache.mina.protocol.*;
+ import org.apache.mina.common.IoHandler;
+ import org.apache.mina.common.IoHandlerAdapter;
+ import org.apache.mina.common.IoSession;
  
- public class ReverseProtocolHandler extends ProtocolHandlerAdapter
+ public class ReverseProtocolHandler extends IoHandlerAdapter
  {
-     public void exceptionCaught( ProtocolSession session,
+     public void exceptionCaught( IoSession session, Throwable cause )
- Throwable cause )
      {
          // Close connection when unexpected exception is caught.
          session.close();
      }
  
-     public void messageReceived( ProtocolSession session,
+     public void messageReceived( IoSession session, Object message )
- Object message )
      {
          // Reverse received string
          String str = message.toString();

Mime
View raw message