Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Best is to look at the Sling integration tests, which use Sling's RESTful APIs to create content.</p> <p>The "old" SlingIntegrationTestClient class [1] is used to test Sling itself and uses httpclient 3.x to create content. It is used by the tests found at [2], so you can find examples there.</p> <p>The "new" SlingClient class [3] is meant to be a cleaner and simpler re-implementation of that, used by the Sling testing tools described at <a href="http://sling.apache.org/site/sling-testing-tools.html" rel="noreferrer">http://sling.apache.org/site/sling-testing-tools.html</a> . It uses httpclient 4.x which has a slightly different API.</p> <p>The SlingClient.mkdir and mkdirs methods do use the MKCOL method.</p> <p>[1] <a href="http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/integration/SlingIntegrationTestClient.java" rel="noreferrer">http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/integration/SlingIntegrationTestClient.java</a></p> <p>[2] <a href="http://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests" rel="noreferrer">http://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests</a></p> <p>[3] <a href="http://svn.apache.org/repos/asf/sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/sling/SlingClient.java" rel="noreferrer">http://svn.apache.org/repos/asf/sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/sling/SlingClient.java</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload