UriBuilder builder = webResource.getUriBuilder(); for ( int i = 0; i < data.nrMatrixParams; i++ ) { String value = data.inputRowMeta.getString( rowData, data.indexOfMatrixParamFields[i] );
/** * Create a new WebResource from this web resource with an additional path * added to the URI of this web resource. * <p> * Any filters on this web resource are inherited. Removal of filters * may cause undefined behaviour. * * @param path the additional path. * * @return the new web resource. */ public WebResource path(String path) { return new WebResource(this, getUriBuilder().path(path)); }
/** * Create a new WebResource from this web resource with an additional * query parameter added to the URI of this web resource. * * @param key the query parameter name * @param value the query parameter value * @return the new web resource. */ public WebResource queryParam(String key, String value) { UriBuilder b = getUriBuilder(); b.queryParam(key, value); return new WebResource(this, b); }
/** * Create a new WebResource from this web resource with an additional * query parameter added to the URI of this web resource. * * @param key the query parameter name * @param value the query parameter value * @return the new web resource. */ public WebResource queryParam(String key, String value) { UriBuilder b = getUriBuilder(); b.queryParam(key, value); return new WebResource(this, b); }
/** * Create a new WebResource from this web resource with an additional path * added to the URI of this web resource. * <p> * Any filters on this web resource are inherited. Removal of filters * may cause undefined behaviour. * * @param path the additional path. * * @return the new web resource. */ public WebResource path(String path) { return new WebResource(this, getUriBuilder().path(path)); }
/** * Create a new WebResource from this web resource with additional * query parameters added to the URI of this web resource. * * @param params the query parameters. * @return the new web resource. */ public WebResource queryParams(MultivaluedMap<String, String> params) { UriBuilder b = getUriBuilder(); for (Map.Entry<String, List<String>> e : params.entrySet()) { for (String value : e.getValue()) b.queryParam(e.getKey(), value); } return new WebResource(this, b); }
/** * Create a new WebResource from this web resource with additional * query parameters added to the URI of this web resource. * * @param params the query parameters. * @return the new web resource. */ public WebResource queryParams(MultivaluedMap<String, String> params) { UriBuilder b = getUriBuilder(); for (Map.Entry<String, List<String>> e : params.entrySet()) { for (String value : e.getValue()) b.queryParam(e.getKey(), value); } return new WebResource(this, b); }
/** * Ping as a GET * @param text text to include * @return the response * @throws IOException on any failure */ public PingInformation pingGet(String text) throws IOException { WebResource pingResource = applicationResource(ACTION_PING); pingResource.getUriBuilder().queryParam("body", text); return pingResource.get(PingInformation.class); }
/** * Ping as a GET * @param text text to include * @return the response * @throws IOException on any failure */ public PingInformation pingGet(String text) throws IOException { WebResource pingResource = applicationResource(ACTION_PING); pingResource.getUriBuilder().queryParam("body", text); return pingResource.get(PingInformation.class); }
@Override public ApplicationOption get(String oid, String lang) { LOGGER.debug("get application option : {}", oid); if (Strings.isNullOrEmpty(oid)) { return null; } else { UriBuilder builder = webResource.path(oid).getUriBuilder(); builder.queryParam("uiLang", lang).build(); LOGGER.debug(builder.build().toString()); WebResource asWebResource = clientWithJacksonSerializer.resource(builder.build()); ApplicationOptionDTO ao = asWebResource.accept(MediaType.APPLICATION_JSON + ";charset=UTF-8").get(new GenericType<ApplicationOptionDTO>() { }); return converterFunction.apply(ao); } } }
UriBuilder b = getUriBuilder(); String path = uri.getRawPath(); if (path != null && path.length() > 0) {
UriBuilder b = getUriBuilder(); String path = uri.getRawPath(); if (path != null && path.length() > 0) {