directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1506784 - /directory/site/trunk/content/api/five-minutes-tutorial.mdtext
Date Wed, 24 Jul 2013 23:57:37 GMT
Author: elecharny
Date: Wed Jul 24 23:57:37 2013
New Revision: 1506784

URL: http://svn.apache.org/r1506784
Log:
fixing some bad samples on the 5 minutes API tutorial

Modified:
    directory/site/trunk/content/api/five-minutes-tutorial.mdtext

Modified: directory/site/trunk/content/api/five-minutes-tutorial.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/api/five-minutes-tutorial.mdtext?rev=1506784&r1=1506783&r2=1506784&view=diff
==============================================================================
--- directory/site/trunk/content/api/five-minutes-tutorial.mdtext (original)
+++ directory/site/trunk/content/api/five-minutes-tutorial.mdtext Wed Jul 24 23:57:37 2013
@@ -42,7 +42,7 @@ In order to create a connection, you fir
 Here is an example :
 
     :::java
-    LdapConnection connection = new LdapConnection( "localhost", 389 );
+    LdapConnection connection = new LdapNetworkConnection( "localhost", 389 );
 
 It's important to note that the connection has nothing to do with being bound, and this is
a major difference with JNDI, where you create some context and provide the principalDN. A
Connection is just a channel opened with the server, here.
 
@@ -86,13 +86,13 @@ Many parameters can be used in a search.
 Here is a simple search, done using only those four parameters :
 
     :::java
-    Cursor<SearchResponse> cursor = connection.search( "ou=system", "(objectclass=*)",
SearchScope.ONELEVEL, "*" );
+    EntryCursor cursor = connection.search( "ou=system", "(objectclass=*)", SearchScope.ONELEVEL,
"*" );
 
     while ( cursor.next() )
     {
-        SearchResponse response = cursor.get();
+        Entry entry = cursor.get();
 
-        // Process the response
+        // Process the entry
         ...
     }
 



Mime
View raw message