From 0ec8481c10cd8277d84c7c1a785483a0a739e5a0 Mon Sep 17 00:00:00 2001 From: abranson Date: Thu, 4 Aug 2011 00:42:34 +0200 Subject: More code cleanup: Refactored Entity Proxy Subscription to handle generics better Rewrote RemoteMap to use TreeMap instead of the internal array for order. It now sorts its keys by number if they parse, else as strings. Removed a no-longer-in-progress outcome form class --- source/com/c2kernel/process/ItemHTTPBridge.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) mode change 100755 => 100644 source/com/c2kernel/process/ItemHTTPBridge.java (limited to 'source/com/c2kernel/process/ItemHTTPBridge.java') diff --git a/source/com/c2kernel/process/ItemHTTPBridge.java b/source/com/c2kernel/process/ItemHTTPBridge.java old mode 100755 new mode 100644 index 8ef2e58..40f48f7 --- a/source/com/c2kernel/process/ItemHTTPBridge.java +++ b/source/com/c2kernel/process/ItemHTTPBridge.java @@ -3,8 +3,6 @@ package com.c2kernel.process; import java.util.StringTokenizer; import com.c2kernel.entity.C2KLocalObject; -import com.c2kernel.lookup.DomainPath; -import com.c2kernel.lookup.EntityPath; import com.c2kernel.utils.CastorXMLUtility; import com.c2kernel.utils.server.HTTPRequestHandler; @@ -19,22 +17,24 @@ public class ItemHTTPBridge extends HTTPRequestHandler { public ItemHTTPBridge() { } - public String getName() { + @Override + public String getName() { return "Item HTTP Server"; } - public String processRequest() { - System.out.println("ItemHTTPBridge::ProcessRequest()"); + @Override + public String processRequest() { + System.out.println("ItemHTTPBridge::ProcessRequest()"); StringTokenizer tok = new StringTokenizer(resource, "?"); - String itemPath = tok.nextToken(); + //String itemPath = tok.nextToken(); String query = tok.nextToken(); int sysKey = -1; //Path path = Gateway.getLDAPLookup().; if (method.equals("GET")) { try { - DomainPath domPath = new DomainPath(itemPath); - EntityPath entityPath = domPath.getEntity(); - + //DomainPath domPath = new DomainPath(itemPath); + //EntityPath entityPath = domPath.getEntity(); + if (sysKey > -1) { C2KLocalObject response = Gateway.getStorage().get(sysKey, query, null); return CastorXMLUtility.marshall(response); -- cgit v1.2.3