[Major] Refactored code for REST Inspector to use gson
This commit is contained in:
parent
113b953e37
commit
90d9dead32
|
@ -364,6 +364,7 @@ public class Inspector {
|
||||||
Certificate cert = (Certificate) request.getAttribute(StrolchRestfulConstants.STROLCH_CERTIFICATE);
|
Certificate cert = (Certificate) request.getAttribute(StrolchRestfulConstants.STROLCH_CERTIFICATE);
|
||||||
|
|
||||||
JsonObject typeDetailJ = new JsonObject();
|
JsonObject typeDetailJ = new JsonObject();
|
||||||
|
typeDetailJ.addProperty(Tags.Json.OBJECT_TYPE, Tags.Json.RESOURCE);
|
||||||
typeDetailJ.addProperty(Tags.Json.TYPE, type);
|
typeDetailJ.addProperty(Tags.Json.TYPE, type);
|
||||||
|
|
||||||
JsonArray elementsJ = new JsonArray();
|
JsonArray elementsJ = new JsonArray();
|
||||||
|
@ -412,6 +413,7 @@ public class Inspector {
|
||||||
Certificate cert = (Certificate) request.getAttribute(StrolchRestfulConstants.STROLCH_CERTIFICATE);
|
Certificate cert = (Certificate) request.getAttribute(StrolchRestfulConstants.STROLCH_CERTIFICATE);
|
||||||
|
|
||||||
JsonObject typeDetailJ = new JsonObject();
|
JsonObject typeDetailJ = new JsonObject();
|
||||||
|
typeDetailJ.addProperty(Tags.Json.OBJECT_TYPE, Tags.Json.ORDER);
|
||||||
typeDetailJ.addProperty(Tags.Json.TYPE, type);
|
typeDetailJ.addProperty(Tags.Json.TYPE, type);
|
||||||
|
|
||||||
JsonArray elementsJ = new JsonArray();
|
JsonArray elementsJ = new JsonArray();
|
||||||
|
@ -462,6 +464,7 @@ public class Inspector {
|
||||||
Certificate cert = (Certificate) request.getAttribute(StrolchRestfulConstants.STROLCH_CERTIFICATE);
|
Certificate cert = (Certificate) request.getAttribute(StrolchRestfulConstants.STROLCH_CERTIFICATE);
|
||||||
|
|
||||||
JsonObject typeDetailJ = new JsonObject();
|
JsonObject typeDetailJ = new JsonObject();
|
||||||
|
typeDetailJ.addProperty(Tags.Json.OBJECT_TYPE, Tags.Json.ACTIVITY);
|
||||||
typeDetailJ.addProperty(Tags.Json.TYPE, type);
|
typeDetailJ.addProperty(Tags.Json.TYPE, type);
|
||||||
|
|
||||||
JsonArray elementsJ = new JsonArray();
|
JsonArray elementsJ = new JsonArray();
|
||||||
|
|
Loading…
Reference in New Issue