You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directmemory.apache.org by ol...@apache.org on 2012/02/26 11:39:38 UTC

svn commit: r1293803 - /incubator/directmemory/trunk/src/site/xdoc/server.xml

Author: olamy
Date: Sun Feb 26 10:39:38 2012
New Revision: 1293803

URL: http://svn.apache.org/viewvc?rev=1293803&view=rev
Log:
add documentation on text/plain exchange

Modified:
    incubator/directmemory/trunk/src/site/xdoc/server.xml

Modified: incubator/directmemory/trunk/src/site/xdoc/server.xml
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/src/site/xdoc/server.xml?rev=1293803&r1=1293802&r2=1293803&view=diff
==============================================================================
--- incubator/directmemory/trunk/src/site/xdoc/server.xml (original)
+++ incubator/directmemory/trunk/src/site/xdoc/server.xml Sun Feb 26 10:39:38 2012
@@ -96,7 +96,26 @@
       </subsection>
     </section>
     <section name="text/plain Exchange">
-
+      <subsection name="text/plain PUT Content">
+        <p>
+          PUT Request to put content in cache Content-Type: text/plain.<br/>
+          To put this content in DirectMemory Cache Server, just use a PUT request on path ${webPath}/DirectMemoryServlet/${key}.<br/>
+          ExpiresIn value can be set with http header: X-DirectMemory-ExpiresIn<br/>
+          The http request body will contains a String value which will be serialized on server side and stored in directMemory.<br/>
+          You can specify the Serializer to use with the http header: "X-DirectMemory-Serializer" (must contains the full class name).
+        </p>
+      </subsection>
+      <subsection name="text/plain GET Content">
+        <p>
+          Use a GET request on ${webPath}/DirectMemoryServlet/${key} and you will receive the stored String.
+          <b>If not content is found for the key, you will receive the http code 204 (No content)</b>
+        </p>
+      </subsection>
+      <subsection name="text/plain DELETE Content">
+        <p>Use a DELETE request on ${webPath}/DirectMemoryServlet/${key}.
+          Note: if the entry was not available in the server you will receive a 204 (Not Content)
+        </p>
+      </subsection>
     </section>
 
     <section name="Java Client API">