You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by bu...@apache.org on 2014/05/17 18:50:01 UTC

svn commit: r909097 - in /websites/staging/directory/trunk/content: ./ api/user-guide/2.10-ldap-connection-template.html

Author: buildbot
Date: Sat May 17 16:50:01 2014
New Revision: 909097

Log:
Staging update by buildbot for directory

Modified:
    websites/staging/directory/trunk/content/   (props changed)
    websites/staging/directory/trunk/content/api/user-guide/2.10-ldap-connection-template.html

Propchange: websites/staging/directory/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat May 17 16:50:01 2014
@@ -1 +1 @@
-1595510
+1595511

Modified: websites/staging/directory/trunk/content/api/user-guide/2.10-ldap-connection-template.html
==============================================================================
--- websites/staging/directory/trunk/content/api/user-guide/2.10-ldap-connection-template.html (original)
+++ websites/staging/directory/trunk/content/api/user-guide/2.10-ldap-connection-template.html Sat May 17 16:50:01 2014
@@ -175,7 +175,7 @@
 <span class="n">DefaultLdapConnectionFactory</span> <span class="n">factory</span> <span class="o">=</span> <span class="k">new</span> <span class="n">DefaultLdapConnectionFactory</span><span class="o">(</span> <span class="n">config</span> <span class="o">);</span>
 <span class="n">factory</span><span class="o">.</span><span class="na">setTimeOut</span><span class="o">(</span> <span class="n">connectionTimeout</span> <span class="o">);</span>
 
-<span class="c1">// OPTIONAL, values below are defaults</span>
+<span class="c1">// optional, values below are defaults</span>
 <span class="n">GenericObjectPool</span><span class="o">.</span><span class="na">Config</span> <span class="n">poolConfig</span> <span class="o">=</span> <span class="k">new</span> <span class="n">GenericObjectPool</span><span class="o">.</span><span class="na">Config</span><span class="o">();</span>
 <span class="n">poolConfig</span><span class="o">.</span><span class="na">lifo</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
 <span class="n">poolConfig</span><span class="o">.</span><span class="na">maxActive</span> <span class="o">=</span> <span class="mi">8</span><span class="o">;</span>
@@ -281,7 +281,7 @@
 <p>More information on EntryMapper can be found in the <a href="#handling-search-result-iteration">Handling Search Result Iteration</a> section.</p>
 <h2 id="handling-search-result-iteration">Handling Search Result Iteration</h2>
 <p>Searching usually contains a lot of boiler plate code for build requests and iterating through responses.  This template does the work for you. It iterates over the entire result set, feeds each entry through an EntryMapper, and collects the results into the list returned to the caller.  All you have to do is provide the EntryMapper for mapping a single entry to a domain object.  EntryMapper itself is a very simple interface with one method.  As you saw before in the lookup documentation, they are typically defined as static members of your service classes:</p>
-<div class="codehilite"><pre><span class="c1">// Typically mappers are reused, so define a static member</span>
+<div class="codehilite"><pre><span class="c1">// typically mappers are reused, so define a static member</span>
 <span class="kd">private</span> <span class="kd">static</span> <span class="kd">final</span> <span class="n">EntryMapper</span> <span class="n">muppetEntryMapper</span> <span class="o">=</span>
     <span class="k">new</span> <span class="n">EntryMapper</span><span class="o">&lt;</span><span class="n">Muppet</span><span class="o">&gt;()</span> <span class="o">{</span>
         <span class="nd">@Override</span>