コード例 #1
0
 // -------------------------------------------------------------------------
 public static URI uriViewProcess(URI baseUri, UniqueIdentifier viewProcessId) {
   // WARNING: '/' characters could well appear in the view name
   // There is a bug(?) in UriBuilder where, even though segment() is meant to treat the item as a
   // single path segment
   // and therefore encode '/' characters, it does not encode '/' characters which come from a
   // variable substitution.
   return UriBuilder.fromUri(baseUri).path("processes").segment(viewProcessId.toString()).build();
 }
コード例 #2
0
 public static URI uriClient(URI clientsBaseUri, UniqueIdentifier viewClientId) {
   return UriBuilder.fromUri(clientsBaseUri).segment(viewClientId.toString()).build();
 }