diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-16 08:44:44 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-16 08:44:44 +0000 |
commit | 3d3b8834b93b98cc7d7534e693e937179067eb58 (patch) | |
tree | 1c31b939872ea8455118a16009a2abb96179ecf1 /branches/sca-java-1.5/samples/store-android/src/services/ShoppingCartProxy.java | |
parent | 86101a456fb21b25abc09533769805911efd1c7f (diff) |
Delete previous 1.5 branch thats now old and unused and will be replaced with the current 1.x trunk
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@775435 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.5/samples/store-android/src/services/ShoppingCartProxy.java')
-rw-r--r-- | branches/sca-java-1.5/samples/store-android/src/services/ShoppingCartProxy.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/branches/sca-java-1.5/samples/store-android/src/services/ShoppingCartProxy.java b/branches/sca-java-1.5/samples/store-android/src/services/ShoppingCartProxy.java deleted file mode 100644 index 872db654a4..0000000000 --- a/branches/sca-java-1.5/samples/store-android/src/services/ShoppingCartProxy.java +++ /dev/null @@ -1,44 +0,0 @@ -package services; - -import org.json.JSONException; -import org.json.JSONObject; - -import services.json.rpc.JSONRpc; - -public class ShoppingCartProxy { - private static final String jsonRPCTotalServiceURI = "http://192.168.1.104:8080/ShoppingCart/Total"; - private static final String jsonRPCTotalRequest = "{\"id\": 4, \"method\": \"Service.getTotal\", \"params\": []}"; - - public Item[] getItems() { - return null; - } - - public void addItem(Item item) { - - } - - public void removeItem(Item item) { - - } - - public void checkOut() { - - } - - public String getTotal() { - String total = ""; - JSONObject json = null; - - try { - json = JSONRpc.invoke(jsonRPCTotalServiceURI, jsonRPCTotalRequest); - - if(json != null) { - total = json.getString("result"); - } - } catch (JSONException e) { - e.printStackTrace(); - } - - return total; - } -} |