directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r109905 - /incubator/directory/ldap/trunk/snacc-provider/src/java/org/apache/ldap/common/berlib/snacc/ControlTransform.java
Date Sun, 05 Dec 2004 19:35:18 GMT
Author: akarasulu
Date: Sun Dec  5 11:35:17 2004
New Revision: 109905

URL: http://svn.apache.org/viewcvs?view=rev&rev=109905
Log:
changed a while back to comply with interface changes in common
Modified:
   incubator/directory/ldap/trunk/snacc-provider/src/java/org/apache/ldap/common/berlib/snacc/ControlTransform.java

Modified: incubator/directory/ldap/trunk/snacc-provider/src/java/org/apache/ldap/common/berlib/snacc/ControlTransform.java
Url: http://svn.apache.org/viewcvs/incubator/directory/ldap/trunk/snacc-provider/src/java/org/apache/ldap/common/berlib/snacc/ControlTransform.java?view=diff&rev=109905&p1=incubator/directory/ldap/trunk/snacc-provider/src/java/org/apache/ldap/common/berlib/snacc/ControlTransform.java&r1=109904&p2=incubator/directory/ldap/trunk/snacc-provider/src/java/org/apache/ldap/common/berlib/snacc/ControlTransform.java&r2=109905
==============================================================================
--- incubator/directory/ldap/trunk/snacc-provider/src/java/org/apache/ldap/common/berlib/snacc/ControlTransform.java
(original)
+++ incubator/directory/ldap/trunk/snacc-provider/src/java/org/apache/ldap/common/berlib/snacc/ControlTransform.java
Sun Dec  5 11:35:17 2004
@@ -202,7 +202,7 @@
  *   limitations under the License.
  *
  */
-
+
 /*
  * $Id: ControlTransform.java,v 1.3 2003/05/08 21:26:50 akarasulu Exp $
  *
@@ -216,7 +216,6 @@
 
 
 import java.util.Iterator ;
-import java.util.ArrayList ;
 import java.util.Collection ;
 
 import org.apache.ldap.common.message.Message ;
@@ -269,7 +268,6 @@
      * @param a_parent the org.apache.ldap.common.message.Message containing the controls.
      * @param a_snaccControls an instance (to transform) of the Snacc4J compiler
      * generated stub used to contain a sequence of controls
-     * @return a collection of transformed org.apache.ldap.common.message.Control objects
      */
     static void transformFromSnacc( Message a_parent, Controls a_snaccControls )
     {
@@ -284,7 +282,12 @@
         for( int ii = 0; ii < a_snaccControls.size(); ii++ )
         {
 			l_snaccControl = (Control) a_snaccControls.get( ii ) ;
-			l_control = new ControlImpl( a_parent ) ;
+			l_control = new ControlImpl( a_parent ) {
+                public byte[] getEncodedValue()
+                {
+                    return null;
+                }
+            };
             l_control.setCritical( l_snaccControl.criticality ) ;
             l_control.setType( new String( l_snaccControl.controlType ) ) ;
             l_control.setValue( l_snaccControl.controlValue ) ;

Mime
View raw message