コード例 #1
0
 /**
  * Builds a URI.
  *
  * @param baseUri the base URI, not null
  * @param vc the version-correction, null means latest
  * @param bundle the bundle, may be null
  * @return the URI, not null
  */
 public static URI uriSearch(URI baseUri, VersionCorrection vc, ExternalIdBundle bundle) {
   UriBuilder bld = UriBuilder.fromUri(baseUri).path("exchanges");
   if (vc != null) {
     bld.queryParam("versionAsOf", vc.getVersionAsOfString());
     bld.queryParam("correctedTo", vc.getCorrectedToString());
   }
   bld.queryParam("id", bundle.toStringList().toArray());
   return bld.build();
 }
コード例 #2
0
 /**
  * Builds a URI.
  *
  * @param baseUri the base URI, not null
  * @param bundle the bundle, may be null
  * @return the URI, not null
  */
 public static URI uriSearchSingle(URI baseUri, ExternalIdBundle bundle) {
   UriBuilder bld = UriBuilder.fromUri(baseUri).path("exchangeSearches/single");
   bld.queryParam("id", bundle.toStringList().toArray());
   return bld.build();
 }