directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r350174 - in /directory/network/trunk/src/java/org/apache/mina/filter: SSLFilter.java codec/ProtocolCodecFilter.java
Date Thu, 01 Dec 2005 05:28:54 GMT
Author: trustin
Date: Wed Nov 30 21:28:49 2005
New Revision: 350174

URL: http://svn.apache.org/viewcvs?rev=350174&view=rev
Log:
* Removed unnecessary casting
* Fixed an IllegalStateException in ProtocolCodecFilter

Modified:
    directory/network/trunk/src/java/org/apache/mina/filter/SSLFilter.java
    directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java

Modified: directory/network/trunk/src/java/org/apache/mina/filter/SSLFilter.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/SSLFilter.java?rev=350174&r1=350173&r2=350174&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/SSLFilter.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/filter/SSLFilter.java Wed Nov 30 21:28:49
2005
@@ -341,11 +341,7 @@
     public void onPostAdd( IoFilterChain parent, String name, NextFilter nextFilter ) throws
SSLException
     {
         parent.getSession().setAttribute( NEXT_FILTER, nextFilter );
-        Object managerOrSession = parent.getSession();
-        if( managerOrSession instanceof IoSession )
-        {
-            createSSLSessionHandler( nextFilter, ( IoSession ) managerOrSession );
-        }
+        createSSLSessionHandler( nextFilter, parent.getSession() );
     }
     
     public void onPreRemove( IoFilterChain parent, String name, NextFilter nextFilter ) throws
SSLException

Modified: directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java?rev=350174&r1=350173&r2=350174&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
(original)
+++ directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
Wed Nov 30 21:28:49 2005
@@ -29,7 +29,7 @@
         this.factory = factory;
     }
     
-    public void onPostAdd( IoFilterChain parent, String name, NextFilter nextFilter ) throws
Exception
+    public void onPreAdd( IoFilterChain parent, String name, NextFilter nextFilter ) throws
Exception
     {
         if( parent.contains( ProtocolCodecFilter.class ) )
         {



Mime
View raw message