directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r905341 - /directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
Date Mon, 01 Feb 2010 17:15:29 GMT
Author: elecharny
Date: Mon Feb  1 17:15:28 2010
New Revision: 905341

URL: http://svn.apache.org/viewvc?rev=905341&view=rev
Log:
Fixed some compilation failure

Modified:
    directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java

Modified: directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java?rev=905341&r1=905340&r2=905341&view=diff
==============================================================================
--- directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
(original)
+++ directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
Mon Feb  1 17:15:28 2010
@@ -97,8 +97,7 @@
 import org.apache.directory.shared.ldap.codec.bind.SimpleAuthentication;
 import org.apache.directory.shared.ldap.codec.compare.CompareRequestCodec;
 import org.apache.directory.shared.ldap.codec.compare.CompareResponseCodec;
-import org.apache.directory.shared.ldap.codec.controls.CodecControl;
-import org.apache.directory.shared.ldap.codec.controls.CodecControlImpl;
+import org.apache.directory.shared.ldap.codec.controls.ControlImpl;
 import org.apache.directory.shared.ldap.codec.del.DelRequestCodec;
 import org.apache.directory.shared.ldap.codec.del.DelResponseCodec;
 import org.apache.directory.shared.ldap.codec.extended.ExtendedRequestCodec;
@@ -264,7 +263,7 @@
         {
             for ( Control control : controls.values() )
             {
-                CodecControlImpl ctrl = new CodecControlImpl( control.getOid() );
+                ControlImpl ctrl = new ControlImpl( control.getOid() );
 
                 ctrl.setValue( control.getValue() );
 
@@ -2083,7 +2082,7 @@
         if ( isControlSupported( treeDeleteOid ) )
         {
             DeleteRequest delRequest = new DeleteRequest( dn );
-            delRequest.add( new CodecControlImpl( treeDeleteOid ) );
+            delRequest.add( new ControlImpl( treeDeleteOid ) );
             return delete( delRequest, null );
         }
         else
@@ -2110,7 +2109,7 @@
             if ( isControlSupported( treeDeleteOid ) )
             {
                 DeleteRequest delRequest = new DeleteRequest( ldapDn );
-                delRequest.add( new CodecControlImpl( treeDeleteOid ) );
+                delRequest.add( new ControlImpl( treeDeleteOid ) );
                 return delete( delRequest, null );
             }
             else
@@ -2825,10 +2824,10 @@
 
     private void addControls( LdapMessageCodec codec, AbstractMessage message )
     {
-        List<CodecControl> ccList = codec.getControls();
+        List<Control> ccList = codec.getControls();
         if ( ccList != null )
         {
-            for ( CodecControl cc : ccList )
+            for ( Control cc : ccList )
             {
                 // FIXME why the cc is coming as null!?
                 if ( cc == null )
@@ -2836,7 +2835,7 @@
                     continue;
                 }
 
-                Control control = new CodecControlImpl( cc.getOid() );
+                Control control = new ControlImpl( cc.getOid() );
                 control.setValue( cc.getValue() );
                 control.setCritical( cc.isCritical() );
 



Mime
View raw message