chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r789337 - in /websites/production/chemistry: ./ content/java/how-to/how-to-connect.html
Date Sat, 07 May 2011 22:35:19 GMT
Author: fmui
Date: Sat May  7 22:35:19 2011
New Revision: 789337

Log:
Publishing merge to chemistry site by fmui

Modified:
    websites/production/chemistry/   (props changed)
    websites/production/chemistry/content/java/how-to/how-to-connect.html

Propchange: websites/production/chemistry/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sat May  7 22:35:19 2011
@@ -1 +1 @@
-/websites/staging/chemistry/trunk:785583-789299
+/websites/staging/chemistry/trunk:785583-789336

Modified: websites/production/chemistry/content/java/how-to/how-to-connect.html
==============================================================================
--- websites/production/chemistry/content/java/how-to/how-to-connect.html (original)
+++ websites/production/chemistry/content/java/how-to/how-to-connect.html Sat May  7 22:35:19
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