/** * Create a Web resource from the client. * * @param u the URI of the resource. * @return the Web resource. */ public WebResource resource(URI u) { return new WebResource(this, this.properties, u); }
/** * Create a Web resource from the client. * * @param u the URI of the resource. * @return the Web resource. */ public WebResource resource(URI u) { return new WebResource(this, this.properties, u); }
/** * 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 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); }
b.replaceQuery(query); return new WebResource(this, b);
b.replaceQuery(query); return new WebResource(this, b);
return new WebResource() { @Override public IResourceStream getResourceStream() {