directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r546379 - in /directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol: KerberosClientDecoder.java KerberosClientEncoder.java
Date Tue, 12 Jun 2007 04:29:14 GMT
Author: erodriguez
Date: Mon Jun 11 21:29:12 2007
New Revision: 546379

URL: http://svn.apache.org/viewvc?view=rev&rev=546379
Log:
Removed unused code by extending MINA protocol codec adapters.

Modified:
    directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientDecoder.java
    directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientEncoder.java

Modified: directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientDecoder.java
URL: http://svn.apache.org/viewvc/directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientDecoder.java?view=diff&rev=546379&r1=546378&r2=546379
==============================================================================
--- directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientDecoder.java
(original)
+++ directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientDecoder.java
Mon Jun 11 21:29:12 2007
@@ -27,7 +27,7 @@
 import org.apache.directory.server.kerberos.shared.io.decoder.KdcReplyDecoder;
 import org.apache.mina.common.ByteBuffer;
 import org.apache.mina.common.IoSession;
-import org.apache.mina.filter.codec.ProtocolDecoder;
+import org.apache.mina.filter.codec.ProtocolDecoderAdapter;
 import org.apache.mina.filter.codec.ProtocolDecoderOutput;
 
 
@@ -35,7 +35,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev: 502788 $, $Date: 2007-02-02 15:11:29 -0800 (Fri, 02 Feb 2007) $
  */
-public class KerberosClientDecoder implements ProtocolDecoder
+public class KerberosClientDecoder extends ProtocolDecoderAdapter
 {
     private static final byte[] ERROR = new byte[]
         { ( byte ) 0x7E, ( byte ) 0x78, ( byte ) 0x30, ( byte ) 0x76 };
@@ -60,17 +60,5 @@
             System.out.println( "Got reply." );
             out.write( replyDecoder.decode( in.buf() ) );
         }
-    }
-
-
-    public void dispose( IoSession session ) throws Exception
-    {
-        // Unused interface method.
-    }
-
-
-    public void finishDecode( IoSession session, ProtocolDecoderOutput out ) throws Exception
-    {
-        // Unused interface method.
     }
 }

Modified: directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientEncoder.java
URL: http://svn.apache.org/viewvc/directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientEncoder.java?view=diff&rev=546379&r1=546378&r2=546379
==============================================================================
--- directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientEncoder.java
(original)
+++ directory/clients/trunk/kerberos/client/src/main/java/org/apache/directory/client/kerberos/protocol/KerberosClientEncoder.java
Mon Jun 11 21:29:12 2007
@@ -26,7 +26,7 @@
 import org.apache.directory.server.kerberos.shared.messages.KdcRequest;
 import org.apache.mina.common.ByteBuffer;
 import org.apache.mina.common.IoSession;
-import org.apache.mina.filter.codec.ProtocolEncoder;
+import org.apache.mina.filter.codec.ProtocolEncoderAdapter;
 import org.apache.mina.filter.codec.ProtocolEncoderOutput;
 
 
@@ -34,7 +34,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev: 502788 $, $Date: 2007-02-02 15:11:29 -0800 (Fri, 02 Feb 2007) $
  */
-public class KerberosClientEncoder implements ProtocolEncoder
+public class KerberosClientEncoder extends ProtocolEncoderAdapter
 {
     private KdcRequestEncoder requestEncoder = new KdcRequestEncoder();
 
@@ -48,11 +48,5 @@
         buf.flip();
 
         out.write( buf );
-    }
-
-
-    public void dispose( IoSession arg0 ) throws Exception
-    {
-        // Unused interface method.
     }
 }



Mime
View raw message