chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r789336 - /websites/staging/chemistry/trunk/content/java/how-to/how-to-connect.html
Date Sat, 07 May 2011 22:33:59 GMT
Author: buildbot
Date: Sat May  7 22:33:58 2011
New Revision: 789336

Log:
Staging update by buildbot

Modified:
    websites/staging/chemistry/trunk/content/java/how-to/how-to-connect.html

Modified: websites/staging/chemistry/trunk/content/java/how-to/how-to-connect.html
==============================================================================
--- websites/staging/chemistry/trunk/content/java/how-to/how-to-connect.html (original)
+++ websites/staging/chemistry/trunk/content/java/how-to/how-to-connect.html Sat May  7 22:33:58
2011
@@ -187,12 +187,18 @@ Apache Chemistry - Connecting to a repos
 <p>In order to connect to a CMIS repository you have to <a href="../examples/example-create-session.html">create
a session</a>.</p>
 <p>A few repositories need <a href="../developing/dev-known-repo-issues.html">special
treatment</a>.</p>
 <h2 id="using_cookies">Using Cookies</h2>
-<p>Some repositories are sending HTTP cookies to maintain state (although CMIS is stateless)
or accelerate authentication for subsequent calls. OpenCMIS
-ignores these cookies by default. The following code snippet activates cookies for your application
and OpenCMIS.
-See <a href="http://java.sun.com/docs/books/tutorial/networking/cookies/cookiemanager.html">this
page</a> for details.</p>
+<p>Some repositories are sending HTTP cookies to maintain state (although CMIS is stateless)
or to accelerate authentication for subsequent calls. OpenCMIS
+ignores these cookies by default. </p>
+<p>The following code snippet activates cookies for your application and OpenCMIS.
+See <a href="http://java.sun.com/docs/books/tutorial/networking/cookies/cookiemanager.html">this
page</a> for details. Note, that all OpenCMIS sessions share the same set of cookies.</p>
 <div class="codehilite"><pre><span class="n">CookieManager</span>
<span class="n">cm</span> <span class="o">=</span> <span class="k">new</span>
<span class="n">CookieManager</span><span class="o">(</span><span
class="kc">null</span><span class="o">,</span> <span class="n">CookiePolicy</span><span
class="o">.</span><span class="na">ACCEPT_ALL</span><span class="o">);</span>
 <span class="n">CookieHandler</span><span class="o">.</span><span
class="na">setDefault</span><span class="o">(</span><span class="n">cm</span><span
class="o">);</span>
-</pre></div></div>
+</pre></div>
+
+
+<p>If each session has to manage a separate set of cookies, a <a href="../developing/client/dev-client-bindings.html#OpenCMISClientBindings-CustomAuthenticationProvider">custom
authentication provider</a> is required. 
+A sample authentication provider can be found <a href="https://svn.apache.org/repos/asf/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/CookieAwareStandardAuthenticationProvider.java-6">here</a>.

+(This authentication provider is not part of the OpenCMIS client library because it makes
use of Java 6 classes and OpenCMIS is complied with Java 5. It also requires OpenCMIS 0.4.0
or higher.) </p></div>
              <!-- Content -->
            </td>
           </tr>



Mime
View raw message