directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r415537 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java
Date Tue, 20 Jun 2006 07:23:02 GMT
Author: elecharny
Date: Tue Jun 20 00:23:01 2006
New Revision: 415537

URL: http://svn.apache.org/viewvc?rev=415537&view=rev
Log:
Fixed the ExtendedResponse error (paylod was not stored in the response)

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java?rev=415537&r1=415536&r2=415537&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java
Tue Jun 20 00:23:01 2006
@@ -19,6 +19,7 @@
 import java.nio.ByteBuffer;
 
 import javax.naming.NamingException;
+import javax.naming.ldap.ExtendedRequest;
 import javax.naming.ldap.ExtendedResponse;
 
 import org.apache.directory.shared.asn1.codec.EncoderException;
@@ -41,7 +42,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class StoredProcedureRequest extends ExtendedRequestImpl
+public class StoredProcedureRequest extends ExtendedRequestImpl implements ExtendedRequest
 {
     private static final Logger log = LoggerFactory.getLogger( StoredProcedureRequest.class
);
     private static final long serialVersionUID = -4682291068700593492L;
@@ -95,7 +96,10 @@
     public ExtendedResponse createExtendedResponse( String id, byte[] berValue, int offset,
int length )
         throws NamingException
     {
-        return ( ExtendedResponse ) getResultResponse();
+    	StoredProcedureResponse resp = ( StoredProcedureResponse ) getResultResponse();
+    	resp.setResponse( berValue );
+    	resp.setOid( id );
+        return ( ExtendedResponse ) resp;
     }
 
 



Mime
View raw message