mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject git commit: [SSHD-350] Ensure compatibility with mina 2.0.8
Date Thu, 18 Sep 2014 15:49:55 GMT
Repository: mina-sshd
Updated Branches:
  refs/heads/master 659ed4f13 -> e313d8809


[SSHD-350] Ensure compatibility with mina 2.0.8

Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/e313d880
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/e313d880
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/e313d880

Branch: refs/heads/master
Commit: e313d8809310e3f2db2e0d708f2d2369b9f85dcb
Parents: 659ed4f
Author: Guillaume Nodet <gnodet@apache.org>
Authored: Thu Sep 18 17:05:36 2014 +0200
Committer: Guillaume Nodet <gnodet@apache.org>
Committed: Thu Sep 18 17:05:36 2014 +0200

----------------------------------------------------------------------
 .../org/apache/sshd/common/io/mina/MinaService.java     | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/e313d880/sshd-core/src/main/java/org/apache/sshd/common/io/mina/MinaService.java
----------------------------------------------------------------------
diff --git a/sshd-core/src/main/java/org/apache/sshd/common/io/mina/MinaService.java b/sshd-core/src/main/java/org/apache/sshd/common/io/mina/MinaService.java
index 6ec6eb3..be678d7 100644
--- a/sshd-core/src/main/java/org/apache/sshd/common/io/mina/MinaService.java
+++ b/sshd-core/src/main/java/org/apache/sshd/common/io/mina/MinaService.java
@@ -23,6 +23,7 @@ import java.util.Map;
 
 import org.apache.mina.core.buffer.IoBuffer;
 import org.apache.mina.core.service.IoHandler;
+import org.apache.mina.core.service.IoHandlerAdapter;
 import org.apache.mina.core.service.IoProcessor;
 import org.apache.mina.core.service.IoService;
 import org.apache.mina.core.session.IdleStatus;
@@ -37,7 +38,7 @@ import org.slf4j.LoggerFactory;
 
 /**
  */
-public abstract class MinaService implements org.apache.sshd.common.io.IoService, IoHandler,
Closeable {
+public abstract class MinaService extends IoHandlerAdapter implements org.apache.sshd.common.io.IoService,
IoHandler, Closeable {
 
     protected final Logger log = LoggerFactory.getLogger(getClass());
 
@@ -89,16 +90,10 @@ public abstract class MinaService implements org.apache.sshd.common.io.IoService
         handler.sessionCreated(ioSession);
     }
 
-    public void sessionOpened(IoSession session) throws Exception {
-    }
-
     public void sessionClosed(IoSession session) throws Exception {
         handler.sessionClosed(getSession(session));
     }
 
-    public void sessionIdle(IoSession session, IdleStatus status) throws Exception {
-    }
-
     public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
         handler.exceptionCaught(getSession(session), cause);
     }
@@ -107,9 +102,6 @@ public abstract class MinaService implements org.apache.sshd.common.io.IoService
         handler.messageReceived(getSession(session), MinaSupport.asReadable((IoBuffer) message));
     }
 
-    public void messageSent(IoSession session, Object message) throws Exception {
-    }
-
     protected org.apache.sshd.common.io.IoSession getSession(IoSession session) {
         return (org.apache.sshd.common.io.IoSession)
                 session.getAttribute(org.apache.sshd.common.io.IoSession.class);


Mime
View raw message