directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r373500 - in /directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations: GracefulDisconnect.java GracefulShutdown.java
Date Mon, 30 Jan 2006 12:31:41 GMT
Author: elecharny
Date: Mon Jan 30 04:31:35 2006
New Revision: 373500

URL: http://svn.apache.org/viewcvs?rev=373500&view=rev
Log:
Fixed the PDU encoding.

Modified:
    directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulDisconnect.java
    directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulShutdown.java

Modified: directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulDisconnect.java
URL: http://svn.apache.org/viewcvs/directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulDisconnect.java?rev=373500&r1=373499&r2=373500&view=diff
==============================================================================
--- directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulDisconnect.java
(original)
+++ directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulDisconnect.java
Mon Jan 30 04:31:35 2006
@@ -114,12 +114,12 @@
         
         if ( timeOffline != 0 )
         {
-            gracefulDisconnectSequenceLength += 1 + 1 + Length.getNbBytes( timeOffline );
+            gracefulDisconnectSequenceLength += 1 + 1 + Value.getNbBytes( timeOffline );
         }
 
         if ( delay != 0 )
         {
-            gracefulDisconnectSequenceLength += 1 + 1 + Length.getNbBytes( delay );
+            gracefulDisconnectSequenceLength += 1 + 1 + Value.getNbBytes( delay );
         }
 
         if ( replicatedContexts.size() > 0 )

Modified: directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulShutdown.java
URL: http://svn.apache.org/viewcvs/directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulShutdown.java?rev=373500&r1=373499&r2=373500&view=diff
==============================================================================
--- directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulShutdown.java
(original)
+++ directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/extended/operations/GracefulShutdown.java
Mon Jan 30 04:31:35 2006
@@ -59,12 +59,12 @@
         
         if ( timeOffline != 0 )
         {
-            gracefulSequenceLength += 1 + 1 + Length.getNbBytes( timeOffline );
+            gracefulSequenceLength += 1 + 1 + Value.getNbBytes( timeOffline );
         }
 
         if ( delay != 0 )
         {
-            gracefulSequenceLength += 1 + 1 + Length.getNbBytes( delay );
+            gracefulSequenceLength += 1 + 1 + Value.getNbBytes( delay );
         }
 
         return gracefulLength + gracefulSequenceLength;
@@ -93,7 +93,7 @@
         if ( delay != 0 )
         {
             bb.put( (byte)GracefulActionConstants.GRACEFUL_ACTION_DELAY_TAG );
-            bb.put( (byte)Length.getNbBytes( delay ) );
+            bb.put( (byte)Value.getNbBytes( delay ) );
             bb.put( Value.getBytes( delay ) );
         }
         return bb;



Mime
View raw message