Exemple #1
0
 /**
  * Builds a URI for holiday meta-data.
  *
  * @param baseUri the base URI, not null
  * @param request the request, may be null
  * @return the URI, not null
  */
 public static URI uriMetaData(URI baseUri, HolidayMetaDataRequest request) {
   UriBuilder bld = UriBuilder.fromUri(baseUri).path("metaData");
   if (request != null) {
     RestUtils.encodeQueryParams(bld, request);
   }
   return bld.build();
 }
Exemple #2
0
 @GET
 @Path("metaData")
 public Response metaData(@Context UriInfo uriInfo) {
   HolidayMetaDataRequest request =
       RestUtils.decodeQueryParams(uriInfo, HolidayMetaDataRequest.class);
   HolidayMetaDataResult result = getHolidayMaster().metaData(request);
   return responseOkFudge(result);
 }