directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r350125 - in /directory/network/branches/chain_refactor/src: java/org/apache/mina/common/ java/org/apache/mina/common/support/ test/org/apache/mina/common/ test/org/apache/mina/examples/echoserver/
Date Thu, 01 Dec 2005 03:23:10 GMT
Author: trustin
Date: Wed Nov 30 19:23:02 2005
New Revision: 350125

URL: http://svn.apache.org/viewcvs?rev=350125&view=rev
Log:
* Renamed IoFilterChain.getFilter() to get() for backward compatibility
* Renamed DefaultIoFilterChainBuilder.getFilter() to get()

Modified:
    directory/network/branches/chain_refactor/src/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java
    directory/network/branches/chain_refactor/src/java/org/apache/mina/common/IoFilterChain.java
    directory/network/branches/chain_refactor/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java
    directory/network/branches/chain_refactor/src/test/org/apache/mina/common/DefaultIoFilterChainBuilderTest.java
    directory/network/branches/chain_refactor/src/test/org/apache/mina/common/IoFilterChainTest.java
    directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/AbstractTest.java
    directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java

Modified: directory/network/branches/chain_refactor/src/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/chain_refactor/src/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java?rev=350125&r1=350124&r2=350125&view=diff
==============================================================================
--- directory/network/branches/chain_refactor/src/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java
(original)
+++ directory/network/branches/chain_refactor/src/java/org/apache/mina/common/DefaultIoFilterChainBuilder.java
Wed Nov 30 19:23:02 2005
@@ -76,7 +76,7 @@
         return ( Entry ) entriesByName.get( name );
     }
     
-    public synchronized IoFilter getFilter( String name )
+    public synchronized IoFilter get( String name )
     {
         Entry e = getEntry( name );
         if( e == null )

Modified: directory/network/branches/chain_refactor/src/java/org/apache/mina/common/IoFilterChain.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/chain_refactor/src/java/org/apache/mina/common/IoFilterChain.java?rev=350125&r1=350124&r2=350125&view=diff
==============================================================================
--- directory/network/branches/chain_refactor/src/java/org/apache/mina/common/IoFilterChain.java
(original)
+++ directory/network/branches/chain_refactor/src/java/org/apache/mina/common/IoFilterChain.java
Wed Nov 30 19:23:02 2005
@@ -47,7 +47,7 @@
      * Returns the {@link IoFilter} with the specified <tt>name</tt> in this
chain.
      * @return <tt>null</tt> if there's no such name in this chain
      */
-    IoFilter getFilter( String name );
+    IoFilter get( String name );
     
     /**
      * Returns the {@link NextFilter} of the {@link IoFilter} with the

Modified: directory/network/branches/chain_refactor/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/chain_refactor/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java?rev=350125&r1=350124&r2=350125&view=diff
==============================================================================
--- directory/network/branches/chain_refactor/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java
(original)
+++ directory/network/branches/chain_refactor/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java
Wed Nov 30 19:23:02 2005
@@ -268,7 +268,7 @@
         return e;
     }
     
-    public IoFilter getFilter( String name )
+    public IoFilter get( String name )
     {
         Entry e = getEntry( name );
         if( e == null )

Modified: directory/network/branches/chain_refactor/src/test/org/apache/mina/common/DefaultIoFilterChainBuilderTest.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/chain_refactor/src/test/org/apache/mina/common/DefaultIoFilterChainBuilderTest.java?rev=350125&r1=350124&r2=350125&view=diff
==============================================================================
--- directory/network/branches/chain_refactor/src/test/org/apache/mina/common/DefaultIoFilterChainBuilderTest.java
(original)
+++ directory/network/branches/chain_refactor/src/test/org/apache/mina/common/DefaultIoFilterChainBuilderTest.java
Wed Nov 30 19:23:02 2005
@@ -83,10 +83,10 @@
         builder.addBefore( "B", "C", filterC );
         builder.addAfter( "A", "D", filterD );
         
-        Assert.assertSame( filterA, builder.getFilter( "A" ) );
-        Assert.assertSame( filterB, builder.getFilter( "B" ) );
-        Assert.assertSame( filterC, builder.getFilter( "C" ) );
-        Assert.assertSame( filterD, builder.getFilter( "D" ) );
+        Assert.assertSame( filterA, builder.get( "A" ) );
+        Assert.assertSame( filterB, builder.get( "B" ) );
+        Assert.assertSame( filterC, builder.get( "C" ) );
+        Assert.assertSame( filterD, builder.get( "D" ) );
     }
     
     public void testRemove() throws Exception

Modified: directory/network/branches/chain_refactor/src/test/org/apache/mina/common/IoFilterChainTest.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/chain_refactor/src/test/org/apache/mina/common/IoFilterChainTest.java?rev=350125&r1=350124&r2=350125&view=diff
==============================================================================
--- directory/network/branches/chain_refactor/src/test/org/apache/mina/common/IoFilterChainTest.java
(original)
+++ directory/network/branches/chain_refactor/src/test/org/apache/mina/common/IoFilterChainTest.java
Wed Nov 30 19:23:02 2005
@@ -85,10 +85,10 @@
         chain.addBefore( "B", "C", filterC );
         chain.addAfter( "A", "D", filterD );
         
-        Assert.assertSame( filterA, chain.getFilter( "A" ) );
-        Assert.assertSame( filterB, chain.getFilter( "B" ) );
-        Assert.assertSame( filterC, chain.getFilter( "C" ) );
-        Assert.assertSame( filterD, chain.getFilter( "D" ) );
+        Assert.assertSame( filterA, chain.get( "A" ) );
+        Assert.assertSame( filterB, chain.get( "B" ) );
+        Assert.assertSame( filterC, chain.get( "C" ) );
+        Assert.assertSame( filterD, chain.get( "D" ) );
     }
     
     public void testRemove() throws Exception

Modified: directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/AbstractTest.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/AbstractTest.java?rev=350125&r1=350124&r2=350125&view=diff
==============================================================================
--- directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/AbstractTest.java
(original)
+++ directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/AbstractTest.java
Wed Nov 30 19:23:02 2005
@@ -113,7 +113,7 @@
                         if( buf.remaining() == 1 && buf.get() == ( byte ) '.' )
                         {
                             SessionLog.info( session, "TLS Reentrance" );
-                            ( ( SSLFilter ) acceptor.getFilterChain().getFilter( "SSL" )
).startSSL( session );
+                            ( ( SSLFilter ) acceptor.getFilterChain().get( "SSL" ) ).startSSL(
session );
 
                             // Send a response
                             buf = ByteBuffer.allocate( 1 );

Modified: directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java?rev=350125&r1=350124&r2=350125&view=diff
==============================================================================
--- directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java
(original)
+++ directory/network/branches/chain_refactor/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java
Wed Nov 30 19:23:02 2005
@@ -142,7 +142,7 @@
         testConnector0( session );
         
         // Send closeNotify to test TLS closure if it is TLS connection.
-        SSLFilter sslf = ( SSLFilter ) connector.getFilterChain().getFilter( "SSL" );
+        SSLFilter sslf = ( SSLFilter ) connector.getFilterChain().get( "SSL" );
         if( sslf != null )
         {
             connector.getFilterChain().addFirst( "log", new LoggingFilter() );



Mime
View raw message