directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r373471 - in /directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message: ExtendedResponseImpl.java extended/GracefulDisconnect.java
Date Mon, 30 Jan 2006 08:39:59 GMT
Author: akarasulu
Date: Mon Jan 30 00:39:56 2006
New Revision: 373471

URL: http://svn.apache.org/viewcvs?rev=373471&view=rev
Log:
fixing a few bugs with GracefulDisconnect handling

Modified:
    directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/ExtendedResponseImpl.java
    directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/extended/GracefulDisconnect.java

Modified: directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/ExtendedResponseImpl.java
URL: http://svn.apache.org/viewcvs/directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/ExtendedResponseImpl.java?rev=373471&r1=373470&r2=373471&view=diff
==============================================================================
--- directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/ExtendedResponseImpl.java
(original)
+++ directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/ExtendedResponseImpl.java
Mon Jan 30 00:39:56 2006
@@ -31,7 +31,7 @@
 {
     static final long serialVersionUID = -6646752766410531060L;
     /** Object identifier for the extended response */
-    private String oid ;
+    protected String oid ;
     /** Values encoded in the extended response payload */
     protected byte [] value ;
 

Modified: directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/extended/GracefulDisconnect.java
URL: http://svn.apache.org/viewcvs/directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/extended/GracefulDisconnect.java?rev=373471&r1=373470&r2=373471&view=diff
==============================================================================
--- directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/extended/GracefulDisconnect.java
(original)
+++ directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/message/extended/GracefulDisconnect.java
Mon Jan 30 00:39:56 2006
@@ -74,6 +74,7 @@
     public GracefulDisconnect( int timeOffline, int delay )
     {
         super( 0 );
+        super.oid = OID;
         this.timeOffline = timeOffline;
         this.delay = delay;
         
@@ -84,6 +85,8 @@
         super.getLdapResult().setErrorMessage( buf.toString() );
         super.getLdapResult().setMatchedDn( "" );
         super.getLdapResult().setResultCode( ResultCodeEnum.UNAVAILABLE );
+        
+        encodeResponse();
     }
     
     



Mime
View raw message