directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r440621 - in /directory/trunks/mina/core/src/main/java/org/apache/mina/common: DefaultIoFilterChainBuilder.java support/AbstractIoFilterChain.java support/BaseIoSession.java
Date Wed, 06 Sep 2006 05:47:53 GMT
Author: trustin
Date: Tue Sep  5 22:47:52 2006
New Revision: 440621

URL: http://svn.apache.org/viewvc?view=rev&rev=440621
Log:
Fixed issue: DIRMINA-236 (Add toString() for common classes such as IoSession, IoFilterChain,
IoFilterChain.Entry, and DefaultIoFilterChainBuilder)
* Added BaseIoSession.toString()
* Added 

Modified:
    directory/trunks/mina/core/src/main/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java
    directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java
    directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/core/src/main/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java?view=diff&rev=440621&r1=440620&r2=440621
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java
(original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java
Tue Sep  5 22:47:52 2006
@@ -357,5 +357,10 @@
         {
             throw new IllegalStateException();
         }
+        
+        public String toString()
+        {
+            return "(" + getName() + ':' + filter + ')';
+        }
     }
 }

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java?view=diff&rev=440621&r1=440620&r2=440621
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java
(original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java
Tue Sep  5 22:47:52 2006
@@ -823,5 +823,10 @@
         {
             return nextFilter;
         }
+        
+        public String toString()
+        {
+            return "(" + getName() + ':' + filter + ')';
+        }
     }
 }

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java?view=diff&rev=440621&r1=440620&r2=440621
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java
(original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java
Tue Sep  5 22:47:52 2006
@@ -459,4 +459,13 @@
             throw new IllegalArgumentException( "Unknown idle status: "
                                                 + status );
     }
+    
+    public String toString()
+    {
+        return "(" + getTransportType() +
+               ", R: " + getRemoteAddress() +
+               ", L: " + getLocalAddress() +
+               ", S: " + getServiceAddress() +
+               ')';
+    }
 }



Mime
View raw message