summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Terry2013-05-30 14:39:20 (EDT)
committer David Terry2013-06-03 11:32:20 (EDT)
commit59a8350585725df955314c3c109ee210ddf87aa0 (patch)
tree7a282a0c93c9dd5b808bc3d991ff341a3dac2c5e
parent8d60f49844e84a0cf27a89b61194eca68894a9ae (diff)
downloadorg.eclipse.lyo.rio-59a8350585725df955314c3c109ee210ddf87aa0.zip
org.eclipse.lyo.rio-59a8350585725df955314c3c109ee210ddf87aa0.tar.gz
org.eclipse.lyo.rio-59a8350585725df955314c3c109ee210ddf87aa0.tar.bz2
Bug 409631 - Add utility methods for simplifying the RIO TRS referencerefs/changes/53/13453/4
application Change-Id: I09473603e7f9d24e895fdf0c96ce76664ec2bbad Signed-off-by: David Terry <dgterry@us.ibm.com>
-rw-r--r--org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/cm/PersistenceResourceUtil.java21
-rw-r--r--org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/BaseResource.java7
-rw-r--r--org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/ChangeRequestResource.java46
-rw-r--r--org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/TRSResource.java13
-rw-r--r--org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/IResourceUtil.java5
-rw-r--r--org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSObject.java42
-rw-r--r--org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSUtil.java42
7 files changed, 112 insertions, 64 deletions
diff --git a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/cm/PersistenceResourceUtil.java b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/cm/PersistenceResourceUtil.java
index 1df4f6f..8066ee7 100644
--- a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/cm/PersistenceResourceUtil.java
+++ b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/cm/PersistenceResourceUtil.java
@@ -16,17 +16,30 @@
package org.eclipse.lyo.rio.trs.cm;
+import java.net.URI;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+
import org.eclipse.lyo.oslc4j.core.model.AbstractResource;
import org.eclipse.lyo.rio.trs.util.IResourceUtil;
public final class PersistenceResourceUtil
implements IResourceUtil
{
+ public static PersistenceResourceUtil instance = new PersistenceResourceUtil();
@Override
- public AbstractResource[] getAllResources() {
- return Persistence.getAllChangeRequests();
+ public List<URI> getAllResourceURIs() {
+ List<URI> uris = new ArrayList<URI>();
+
+ Collection<ChangeRequest> changeRequests = Arrays.asList(Persistence.getAllChangeRequests());
+
+ for (ChangeRequest currentRequest : changeRequests) {
+ uris.add(currentRequest.getAbout());
+ }
+
+ return uris;
}
-
- public static PersistenceResourceUtil instance = new PersistenceResourceUtil();
}
diff --git a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/BaseResource.java b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/BaseResource.java
index 6bcb24f..e6a1435 100644
--- a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/BaseResource.java
+++ b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/BaseResource.java
@@ -91,7 +91,7 @@ public class BaseResource {
@Path("{page}")
@Produces({ OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.TEXT_TURTLE, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Base getBasePage(@PathParam("page")Long page) throws URISyntaxException{
- TRSUtil.updateTRSResourceURI(PersistenceResourceUtil.instance, uriInfo.getBaseUri());
+ init();
// from uri find out which Inner container to access...
URI requestURI = uriInfo.getRequestUri();
@@ -105,4 +105,9 @@ public class BaseResource {
return base;
}
+
+ private void init() {
+ // Initialize the base before adding / deleting any resource.
+ TRSUtil.initialize(PersistenceResourceUtil.instance, uriInfo.getBaseUri());
+ }
}
diff --git a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/ChangeRequestResource.java b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/ChangeRequestResource.java
index 2d19758..3ebd0a0 100644
--- a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/ChangeRequestResource.java
+++ b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/ChangeRequestResource.java
@@ -20,6 +20,7 @@ import java.io.IOException;
import java.io.PrintWriter;
import java.net.URI;
import java.net.URISyntaxException;
+import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.RequestDispatcher;
@@ -89,7 +90,7 @@ public class ChangeRequestResource
ChangeRequest changeRequest = Persistence.persistChangeRequest(baseURI, cr);
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
// Send back to the form a small JSON response.
httpServletResponse.setContentType("application/json");
@@ -130,7 +131,7 @@ public class ChangeRequestResource
Persistence.updateChangeRequest(changeRequestId, changeRequest);
// TRS - Insert the modification event to the change log
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_MODIFICATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_MODIFICATION, changeRequest.getAbout(), getCurrentTimeStampURN());
String eTag = getETagFromChangeRequest(changeRequest);
httpServletResponse.setContentType("application/json");
@@ -331,7 +332,7 @@ public class ChangeRequestResource
if (changeRequest != null)
{
// TRS - Insert the deletion event to the change log
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_DELETION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_DELETION, changeRequest.getAbout(), getCurrentTimeStampURN());
return Response.ok().build();
@@ -359,39 +360,39 @@ public class ChangeRequestResource
ChangeRequest changeRequest = null;
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Unable to execute Apache Tomcat due to missing Java runtime environment (JRE).",
"Apache Tomcat requires JRE", "Server"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Operating system password required to be alphanumeric with at least eight characters.",
"Password complexity rules", "Server"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Misspelling in error message in XYZZY product.",
"Error message mispelling", "Client"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Unable to execute Apache Tomcat due to missing Java runtime environment (JRE).",
"Integer et elementum est. Maecenas bibendum fermentum pharetra.", "Server"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sed pharetra lectus..",
"Password complexity rules", "Client"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Vestibulum volutpat, est vehicula tincidunt tincidunt, tortor ipsum consequat ante, sit amet ultricies elit dui ac massa. Nulla facilisi..",
"Fusce dapibus imperdiet porta.", "Server"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Nunc aliquet scelerisque leo, eu molestie enim fermentum nec. Nulla lectus dui, dictum non sodales quis, dictum sed ante. Proin quam nulla, euismod ac facilisis eu, rhoncus vel quam. Donec ac ligula ante. Nulla egestas quam sit amet neque placerat quis iaculis risus tincidunt. Mauris a sapien nulla.",
"Suspendisse lobortis nisi nisl, et imperdiet nisl.", "Client"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Ut felis risus, blandit eu tristique sed, vulputate non ligula. Donec interdum mi sed odio bibendum eget placerat mi tempus. Pellentesque id erat mauris.",
"Duis placerat scelerisque purus sed tincidunt.", "Server"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
changeRequest = Persistence.persistChangeRequest(baseURI, Persistence.createChangeRequest("Etiam lacinia cursus risus at iaculis. Nunc metus nisi, lobortis vitae consequat nec, hendrerit nec augue.",
"Donec sit amet felis purus.", "Client"));
- TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout());
+ TRSUtil.insertEventTypeToChangeLog(TRSConstants.TRS_TYPE_CREATION, changeRequest.getAbout(), getCurrentTimeStampURN());
return "Success!";
}
@@ -422,4 +423,25 @@ public class ChangeRequestResource
}
+ // The following two methods help generate a unique URN for a change event.
+ // This URN identifies a particular change event. In a production system it
+ // is often useful to persist change logs so that the same change event URN
+ // can be used on a restart of the application. This allows consumers of the
+ // the feed to know which changes events have already been viewed.
+ private static URI getCurrentTimeStampURN() {
+ URI timestampURI = null;
+ try {
+ timestampURI = new URI("urn:urn-3:cm1.example.com:" + getCurrentTimeStamp());
+ } catch (URISyntaxException e) {
+ e.printStackTrace();
+ }
+ return timestampURI;
+ }
+
+ private static String getCurrentTimeStamp() {
+ Date currDate = new Date();
+ SimpleDateFormat dateFormatGmt = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss.SS");
+ String currDateStr = dateFormatGmt.format(currDate);
+ return currDateStr;
+ }
}
diff --git a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/TRSResource.java b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/TRSResource.java
index 72e87b3..67f2137 100644
--- a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/TRSResource.java
+++ b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/resources/TRSResource.java
@@ -85,8 +85,8 @@ public class TRSResource {
@GET
@Produces({ OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.TEXT_TURTLE, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public TrackedResourceSet getTrackedResourceSet() throws URISyntaxException{
+ init();
- // from uri find out which Inner container to access...
URI requestURI = uriInfo.getRequestUri();
TRSObject trsObject = TRSUtil.getTrsObject(PersistenceResourceUtil.instance, requestURI);
@@ -113,7 +113,8 @@ public class TRSResource {
@Path("changelog")
@Produces({ OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.TEXT_TURTLE, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public AbstractChangeLog getChangeLog() throws URISyntaxException{
- // from uri find out which Inner container to access...
+ init();
+
URI requestURI = uriInfo.getRequestUri();
TRSObject trsObject = TRSUtil.getTrsObject(PersistenceResourceUtil.instance, requestURI);
@@ -131,7 +132,8 @@ public class TRSResource {
@Path("changelog/{page}")
@Produces({ OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.TEXT_TURTLE, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public AbstractChangeLog getChangeLogPage(@PathParam("page") final Long page) throws URISyntaxException{
- // from uri find out which Inner container to access...
+ init();
+
URI requestURI = uriInfo.getRequestUri();
TRSObject trsObject = TRSUtil.getTrsObject(PersistenceResourceUtil.instance, requestURI);
@@ -170,4 +172,9 @@ public class TRSResource {
}
}
+
+ private void init() {
+ // Initialize the base before adding / deleting any resource.
+ TRSUtil.initialize(PersistenceResourceUtil.instance, uriInfo.getBaseUri());
+ }
}
diff --git a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/IResourceUtil.java b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/IResourceUtil.java
index e4393b8..ef5a5a4 100644
--- a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/IResourceUtil.java
+++ b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/IResourceUtil.java
@@ -16,8 +16,11 @@
package org.eclipse.lyo.rio.trs.util;
+import java.net.URI;
+import java.util.List;
+
import org.eclipse.lyo.oslc4j.core.model.AbstractResource;
public interface IResourceUtil {
- public AbstractResource[] getAllResources();
+ public List<URI> getAllResourceURIs();
}
diff --git a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSObject.java b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSObject.java
index cf3983f..c31c2c8 100644
--- a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSObject.java
+++ b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSObject.java
@@ -86,7 +86,7 @@ public class TRSObject {
private void initialize() {
synchronized (trs_base_map) {
trs_base_initialized = true;
- AbstractResource[] abstractResources = resourceUtil.getAllResources();
+ List<URI> uris = resourceUtil.getAllResourceURIs();
// initialize TRS Base
int currentPageSize = 0;
@@ -94,14 +94,14 @@ public class TRSObject {
Base currentBase = null;
// if there are no known resources, then create an empty base object
- if (abstractResources.length == 0) {
+ if (uris.size() == 0) {
currentBase = createNewBase();
getTrsBaseMapInner().put(currentPageNumber, currentBase);
return;
}
// inventory of all CR resources
- for (AbstractResource abstractResource : abstractResources) {
+ for (URI uri : uris) {
// If current size is zero, then create a new base page.
if (currentPageSize == 0) {
@@ -114,7 +114,7 @@ public class TRSObject {
}
// add resource into TRS base
- currentBase.getMembers().add(abstractResource.getAbout());
+ currentBase.getMembers().add(uri);
currentPageSize++;
// Have we reached the page boundary?
@@ -167,20 +167,26 @@ public class TRSObject {
* @param resource
* - URI of the resource that has undergone the change identified
* by trsEvent
+ * @param changeURN
+ * - URN (uniform resource name) uniquely identifying a change
+ * event. The reference application makes calls to
+ * TRSUtil.getCurrentTimeStampURN() to generate a URN based on
+ * the current time. In a real implementation a true URN that can
+ * persist across server restarts should likely be used.
*/
- public void insertEventTypeToChangeLog(String trsEvent, URI resource) {
+ public void insertEventTypeToChangeLog(String trsEvent, URI resource, URI changeURN) {
ChangeEvent event = null;
// increment the event number to maintain event order
int eventNumber = (last_change_event != null) ? last_change_event.getOrder() + 1 : 0;
if (trsEvent.equals(TRSConstants.TRS_TYPE_CREATION)) {
- event = new Creation(getCurrentTimeStampURN(), resource,
+ event = new Creation(changeURN, resource,
eventNumber);
} else if (trsEvent.equals(TRSConstants.TRS_TYPE_MODIFICATION)) {
- event = new Modification(getCurrentTimeStampURN(), resource,
+ event = new Modification(changeURN, resource,
eventNumber);
} else if (trsEvent.equals(TRSConstants.TRS_TYPE_DELETION)) {
- event = new Deletion(getCurrentTimeStampURN(), resource,
+ event = new Deletion(changeURN, resource,
eventNumber);
}
@@ -350,7 +356,7 @@ public class TRSObject {
int size = baseValues.size();
Base currentBase = null;
for (Base base : baseValues) {
- if (index == (baseValues.size() - 1)) {
+ if (index == (size - 1)) {
// get the last base page
currentBase = base;
}
@@ -380,22 +386,4 @@ public class TRSObject {
}
}
}
-
- // the following two methods help generate a unique urn for a change event
- private static URI getCurrentTimeStampURN() {
- URI timestampURI = null;
- try {
- timestampURI = new URI("urn:urn-3:cm1.example.com:" + getCurrentTimeStamp());
- } catch (URISyntaxException e) {
- e.printStackTrace();
- }
- return timestampURI;
- }
-
- private static String getCurrentTimeStamp() {
- Date currDate = new Date();
- SimpleDateFormat dateFormatGmt = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss.SS");
- String currDateStr = dateFormatGmt.format(currDate);
- return currDateStr;
- }
}
diff --git a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSUtil.java b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSUtil.java
index 859b6f1..2a188ec 100644
--- a/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSUtil.java
+++ b/org.eclipse.lyo.rio.trs/src/main/java/org/eclipse/lyo/rio/trs/util/TRSUtil.java
@@ -34,18 +34,29 @@ import org.eclipse.lyo.core.trs.ChangeEvent;
* resources or several pages of change logs).
*/
public class TRSUtil {
- private final TreeMap<String, TRSObject> trs_object_map = new TreeMap<String, TRSObject>();
+ private final TreeMap<String, TRSObject> trs_object_map = new TreeMap<String, TRSObject>();
/**
- * insertEventTypeToChangeLog - Insert an event corresponding to the trsEvent for the resource
- * located at
- * @param trsEvent - One of TRS_TYPE_CREATION, TRS_TYPE_MODIFICATION or TRS_TYPE_DELETION
- * @param resource - URI of the resource that has undergone the change identified by trsEvent
+ * insertEventTypeToChangeLog - Insert an event corresponding to the
+ * trsEvent for the resource located at
+ *
+ * @param trsEvent
+ * - One of TRS_TYPE_CREATION, TRS_TYPE_MODIFICATION or
+ * TRS_TYPE_DELETION
+ * @param resource
+ * - URI of the resource that has undergone the change identified
+ * by trsEvent
+ * @param changeURN
+ * - URN (uniform resource name) uniquely identifying a change
+ * event. The reference application makes calls to
+ * TRSUtil.getCurrentTimeStampURN() to generate a URN based on
+ * the current time. In a real implementation a true URN that can
+ * persist across server restarts should likely be used.
*/
- public static void insertEventTypeToChangeLog(String trsEvent, URI resource) {
+ public static void insertEventTypeToChangeLog(String trsEvent, URI resource, URI changeURN) {
// add the event to each inner container helper obj representing JAXRS and generic implementation.
for (int i = 0 ; i <innerHelpr.length; i++ )
- innerHelpr[i].insertEventTypeToChangeLog(trsEvent, resource);
+ innerHelpr[i].insertEventTypeToChangeLog(trsEvent, resource, changeURN);
}
// if required, this routine will update the URI
@@ -97,14 +108,6 @@ public class TRSUtil {
}
}
}
-
- public final static String TRS_URI_PATH = "/rest/trs/";
- public final static String TRS_URI_PATH2 = "/restx/trs/";
- public final static String TRS_GENERIC_MARKER = "/restx/";
-
- // inner container helper obj representing JAXRS and generic implementation.
- private static TRSObject[] innerHelpr = new TRSObject[2];
- public static boolean TRS_URI_INITIALIZED = false;
public static void modifyCutoffEvent(ChangeEvent inCutOffEvent) {
for (int i = 0 ; i <innerHelpr.length; i++ )
@@ -115,5 +118,12 @@ public class TRSUtil {
// since the same set of event is kept in both the helper's changelog; access the first helper.
return innerHelpr[0].getChangeEventInner(uriAbout);
}
-
+
+ public final static String TRS_URI_PATH = "/rest/trs/";
+ public final static String TRS_URI_PATH2 = "/restx/trs/";
+ public final static String TRS_GENERIC_MARKER = "/restx/";
+
+ // inner container helper obj representing JAXRS and generic implementation.
+ private static TRSObject[] innerHelpr = new TRSObject[2];
+ public static boolean TRS_URI_INITIALIZED = false;
}