@Override public Builder link(javax.ws.rs.core.Link link) { uriBuilder.uri(link.getUri()); params.clear(); params.putAll(link.getParams()); return this; }
@Override public Builder link(javax.ws.rs.core.Link link) { uriBuilder.uri(link.getUri()); params.clear(); params.putAll(link.getParams()); return this; }
static URI addQueryParams(final URI info, final Map<String, Object[]> params) { final UriBuilder builder = UriBuilder.fromUri(info); builder.uri(info); params.forEach(builder::queryParam); return builder.build(); }
/** * Create a new instance initialized from an existing URI. * * @param uri a URI that will be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if uri is {@code null}. */ public static UriBuilder fromUri(URI uri) { return newInstance().uri(uri); }
/** * Create a new instance initialized from an existing URI. * * @param uriTemplate a URI template that will be used to initialize the UriBuilder, may * contain URI parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or * is {@code null}. */ public static UriBuilder fromUri(String uriTemplate) { return newInstance().uri(uriTemplate); }
/** * Create a new instance initialized from an existing URI. * * @param uriTemplate a URI template that will be used to initialize the UriBuilder, may * contain URI parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or * is {@code null}. */ public static UriBuilder fromUri(String uriTemplate) { return newInstance().uri(uriTemplate); }
private static URI merge(String value, UriInfo uriInfo) { URI target = URI.create(value); if (target.getHost() == null) { target = UriBuilder.fromUri(uriInfo.getBaseUri()).uri(target).build(); } return target; }
/** * Create a new instance initialized from an existing URI. * * @param uri a URI that will be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if uri is {@code null}. */ public static UriBuilder fromUri(URI uri) { return newInstance().uri(uri); }
/** * Create a new instance initialized from an existing URI. * * @param uri a URI that will be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if uri is {@code null}. */ public static UriBuilder fromUri(URI uri) { return newInstance().uri(uri); }
/** * Create a new instance initialized from an existing URI. * * @param uriTemplate a URI template that will be used to initialize the UriBuilder, may * contain URI parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or * is {@code null}. */ public static UriBuilder fromUri(String uriTemplate) { return newInstance().uri(uriTemplate); }
/** * Create a new instance initialized from an existing URI. * * @param uri a URI that will be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if uri is {@code null}. */ public static UriBuilder fromUri(URI uri) { return newInstance().uri(uri); }
/** * Create a new instance initialized from an existing URI. * * @param uri a URI that will be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if uri is {@code null}. */ public static UriBuilder fromUri(URI uri) { return newInstance().uri(uri); }
/** * Create a new instance initialized from an existing URI. * * @param uriTemplate a URI template that will be used to initialize the UriBuilder, may * contain URI parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or * is {@code null}. */ public static UriBuilder fromUri(String uriTemplate) { return newInstance().uri(uriTemplate); }
/** * Create a new instance initialized from an existing URI. * * @param uri a URI that will be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if uri is {@code null}. */ public static UriBuilder fromUri(URI uri) { return newInstance().uri(uri); }
/** * Create a new instance initialized from an existing URI. * * @param uri a URI that will be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if uri is {@code null}. */ public static UriBuilder fromUri(URI uri) { return newInstance().uri(uri); }
/** * Create a new instance initialized from an existing URI. * * @param uriTemplate a URI template that will be used to initialize the UriBuilder, may * contain URI parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if {@code uriTemplate} is not a valid URI template or * is {@code null}. */ public static UriBuilder fromUri(String uriTemplate) { return newInstance().uri(uriTemplate); }
/** * Create a new instance initialized from an existing URI. * @param uri a URI that will be used to initialize the UriBuilder. * @return a new UriBuilder * @throws IllegalArgumentException if uri is null */ public static UriBuilder fromUri(URI uri) throws IllegalArgumentException { UriBuilder b = newInstance(); b.uri(uri); return b; }
@Override public Builder link(javax.ws.rs.core.Link link) { uriBuilder.uri(link.getUri()); params.clear(); params.putAll(link.getParams()); return this; }
@Override public Builder link(javax.ws.rs.core.Link link) { uriBuilder.uri(link.getUri()); params.clear(); params.putAll(link.getParams()); return this; }
@Override public Builder link(javax.ws.rs.core.Link link) { uriBuilder.uri(link.getUri()); params.clear(); params.putAll(link.getParams()); return this; }