directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r760732 - /directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/ImportCommand.java
Date Tue, 31 Mar 2009 23:31:36 GMT
Author: elecharny
Date: Tue Mar 31 23:31:36 2009
New Revision: 760732

URL: http://svn.apache.org/viewvc?rev=760732&view=rev
Log:
Modified the classes to reflect the renaming of codec and standard messages

Modified:
    directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/ImportCommand.java

Modified: directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/ImportCommand.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/ImportCommand.java?rev=760732&r1=760731&r2=760732&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/ImportCommand.java
(original)
+++ directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/ImportCommand.java
Tue Mar 31 23:31:36 2009
@@ -45,8 +45,8 @@
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.LdapResult;
 import org.apache.directory.shared.ldap.codec.add.AddRequest;
-import org.apache.directory.shared.ldap.codec.bind.BindRequest;
-import org.apache.directory.shared.ldap.codec.bind.BindResponse;
+import org.apache.directory.shared.ldap.codec.bind.BindRequestCodec;
+import org.apache.directory.shared.ldap.codec.bind.BindResponseCodec;
 import org.apache.directory.shared.ldap.codec.bind.LdapAuthentication;
 import org.apache.directory.shared.ldap.codec.bind.SimpleAuthentication;
 import org.apache.directory.shared.ldap.codec.del.DelRequest;
@@ -169,9 +169,9 @@
                 {
                     messageResp = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage();
 
-                    if ( messageResp instanceof BindResponse )
+                    if ( messageResp instanceof BindResponseCodec )
                     {
-                        BindResponse resp = ( ( LdapMessageContainer ) ldapMessageContainer
).getLdapMessage()
+                        BindResponseCodec resp = ( ( LdapMessageContainer ) ldapMessageContainer
).getLdapMessage()
                             .getBindResponse();
 
                         if ( resp.getLdapResult().getResultCode() != ResultCodeEnum.SUCCESS
)
@@ -513,7 +513,7 @@
      */
     private void bind( int messageId ) throws NamingException, EncoderException, DecoderException,
IOException
     {
-        BindRequest bindRequest = new BindRequest();
+        BindRequestCodec bindRequest = new BindRequestCodec();
         LdapMessage message = new LdapMessage();
         LdapAuthentication authentication = null;
 



Mime
View raw message