[infinispan-commits] Infinispan SVN: r1170 - in trunk/server/rest/src/main: webapp and 1 other directory.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Fri Nov 13 10:29:25 EST 2009


Author: manik.surtani at jboss.com
Date: 2009-11-13 10:29:25 -0500 (Fri, 13 Nov 2009)
New Revision: 1170

Modified:
   trunk/server/rest/src/main/resources/sample_python_client.py
   trunk/server/rest/src/main/resources/sample_ruby_client.rb
   trunk/server/rest/src/main/webapp/index.html
Log:
minor tweaks

Modified: trunk/server/rest/src/main/resources/sample_python_client.py
===================================================================
--- trunk/server/rest/src/main/resources/sample_python_client.py	2009-11-13 15:27:41 UTC (rev 1169)
+++ trunk/server/rest/src/main/resources/sample_python_client.py	2009-11-13 15:29:25 UTC (rev 1170)
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
 #
 # Sample python code using the standard http lib only
 #
@@ -4,9 +6,11 @@
 
 import httplib
 
+## Your Infinispan WAR server host
+hostname = "localhost:8080"
 
 #putting data in 
-conn = httplib.HTTPConnection("localhost:8080")
+conn = httplib.HTTPConnection(hostname)
 data = "SOME DATA HERE !" #could be string, or a file...
 conn.request("POST", "/infinispan/rest/Bucket/0", data, {"Content-Type": "text/plain"})
 response = conn.getresponse()
@@ -14,8 +18,11 @@
 
 #getting data out
 import httplib
-conn = httplib.HTTPConnection("localhost:8080")
+conn = httplib.HTTPConnection(hostname)
 conn.request("GET", "/infinispan/rest/Bucket/0")
 response = conn.getresponse()
 print response.status
 print response.read()
+
+## For more information on usagse see http://www.jboss.org/community/wiki/InfinispanRESTserver
+

Modified: trunk/server/rest/src/main/resources/sample_ruby_client.rb
===================================================================
--- trunk/server/rest/src/main/resources/sample_ruby_client.rb	2009-11-13 15:27:41 UTC (rev 1169)
+++ trunk/server/rest/src/main/resources/sample_ruby_client.rb	2009-11-13 15:29:25 UTC (rev 1170)
@@ -1,3 +1,5 @@
+#!/usr/bin/ruby
+
 #
 # Shows how to interact with Infinispan REST api from ruby.
 # No special libraries, just standard net/http
@@ -33,6 +35,7 @@
 http.put('/infinispan/rest/Users/data/0', data.to_json, {"Content-Type" => "application/json"})
 puts "OK !"
 
+## For more information on usagse see http://www.jboss.org/community/wiki/InfinispanRESTserver
 
 
 

Modified: trunk/server/rest/src/main/webapp/index.html
===================================================================
--- trunk/server/rest/src/main/webapp/index.html	2009-11-13 15:27:41 UTC (rev 1169)
+++ trunk/server/rest/src/main/webapp/index.html	2009-11-13 15:29:25 UTC (rev 1170)
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html><head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="Infinispan is a highly scalable platform for distributed data grids in Java." name="description"><meta content="Scalable, jsr107, cache, caching, distributed, grid, data grid, coherence, tangosol, gigaspaces, terracotta, jboss cache, pojo cache, infinispan, horizon, javaspaces, jgroups" name="keywords"><meta content="all" name="robots"><meta content="no-cache" http-equiv="cache-control"><meta content="no-cache" http-equiv="pragma"><link href="http://jboss.org/theme/favicon.ico" rel="Shortcut Icon">
+<html><head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="Infinispan is a highly scalable platform for distributed data grids in Java." name="description"><meta content="Scalable, jsr107, cache, caching, distributed, grid, data grid, coherence, tangosol, gigaspaces, terracotta, jboss cache, pojo cache, infinispan, horizon, javaspaces, jgroups" name="keywords"><meta content="all" name="robots"><meta content="no-cache" http-equiv="cache-control"><meta content="no-cache" http-equiv="pragma"><link href="http://jboss.org/infinispan/orgLayoutBody/favicon/favicon.png" rel="Shortcut Icon">
     <title>I N F I N I S P A N - Server</title><script src="js/functions.js" type="text/javascript"></script><script src="js/form.js" type="text/javascript"></script>   
    <script type="text/javascript" src="js/jquery_003.js"> 
 </script> <script type="text/javascript" src="js/jquery_002.js"> 



More information about the infinispan-commits mailing list