/** * Create an asynchronous Web resource from the client. * * @param u the URI of the resource. * @return the Web resource. */ public AsyncWebResource asyncResource(URI u) { return new AsyncWebResource(this, this.properties, u); }
/** * Create an asynchronous Web resource from the client. * * @param u the URI of the resource. * @return the Web resource. */ public AsyncWebResource asyncResource(URI u) { return new AsyncWebResource(this, this.properties, u); }
/** * Create a new AsyncWebResource 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 AsyncWebResource path(String path) { return new AsyncWebResource(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 AsyncWebResource queryParam(String key, String value) { UriBuilder b = getUriBuilder(); b.queryParam(key, value); return new AsyncWebResource(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 AsyncWebResource queryParam(String key, String value) { UriBuilder b = getUriBuilder(); b.queryParam(key, value); return new AsyncWebResource(this, b); }
/** * Create a new AsyncWebResource 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 AsyncWebResource path(String path) { return new AsyncWebResource(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 AsyncWebResource 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 AsyncWebResource(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 AsyncWebResource 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 AsyncWebResource(this, b); }
b.replaceQuery(query); return new AsyncWebResource(this, b);
b.replaceQuery(query); return new AsyncWebResource(this, b);