コード例 #1
0
 // -------------------------------------------------------------------------
 @Path(PATH_CLIENTS + "/{viewClientId}")
 public DataViewClientResource getViewClient(
     @Context UriInfo uriInfo, @PathParam("viewClientId") String viewClientIdString) {
   UniqueIdentifier viewClientId = UniqueIdentifier.parse(viewClientIdString);
   DataViewClientResource viewClientResource = _createdViewClients.get(viewClientId);
   if (viewClientResource != null) {
     return viewClientResource;
   }
   ViewClient viewClient = _viewProcessor.getViewClient(viewClientId);
   URI viewProcessorUri = getViewProcessorUri(uriInfo);
   return createViewClientResource(viewClient, viewProcessorUri);
 }
コード例 #2
0
 // -------------------------------------------------------------------------
 @Path(PATH_PROCESSES + "/{viewProcessId}")
 public DataViewProcessResource getViewProcess(@PathParam("viewProcessId") String viewProcessId) {
   ViewProcess view = _viewProcessor.getViewProcess(UniqueIdentifier.parse(viewProcessId));
   return new DataViewProcessResource(view);
 }