/** * Create a new instance representing a relative URI initialized from a * root resource class. * * @param resource a root resource whose {@link javax.ws.rs.Path} value will * be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if resource is not annotated with * {@link javax.ws.rs.Path} or resource is {@code null}. */ public static UriBuilder fromResource(Class<?> resource) { return newInstance().path(resource); }
/** * Create a new instance representing a relative URI initialized from a * URI path. * * @param path a URI path that will be used to initialize the UriBuilder, * may contain URI template parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if path is {@code null}. */ public static UriBuilder fromPath(String path) throws IllegalArgumentException { return newInstance().path(path); }
/** * Create a new instance representing a relative URI initialized from a * URI path. * * @param path a URI path that will be used to initialize the UriBuilder, * may contain URI template parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if path is {@code null}. */ public static UriBuilder fromPath(String path) throws IllegalArgumentException { return newInstance().path(path); }
/** * Create a new instance representing a relative URI initialized from a * URI path. * * @param path a URI path that will be used to initialize the UriBuilder, * may contain URI template parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if path is {@code null}. */ public static UriBuilder fromPath(String path) throws IllegalArgumentException { return newInstance().path(path); }
/** * Create a new instance representing a relative URI initialized from a * URI path. * * @param path a URI path that will be used to initialize the UriBuilder, * may contain URI template parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if path is {@code null}. */ public static UriBuilder fromPath(String path) throws IllegalArgumentException { return newInstance().path(path); }
/** * Create a new instance representing a relative URI initialized from a * root resource class. * * @param resource a root resource whose {@link javax.ws.rs.Path} value will * be used to initialize the UriBuilder. * @return a new UriBuilder. * @throws IllegalArgumentException if resource is not annotated with * {@link javax.ws.rs.Path} or resource is {@code null}. */ public static UriBuilder fromResource(Class<?> resource) { return newInstance().path(resource); }
/** * Create a new instance representing a relative URI initialized from a * URI path. * * @param path a URI path that will be used to initialize the UriBuilder, * may contain URI template parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if path is {@code null}. */ public static UriBuilder fromPath(String path) throws IllegalArgumentException { return newInstance().path(path); }
/** * Create a new instance representing a relative URI initialized from a * URI path. * * @param path a URI path that will be used to initialize the UriBuilder, * may contain URI template parameters. * @return a new UriBuilder. * @throws IllegalArgumentException if path is {@code null}. */ public static UriBuilder fromPath(String path) throws IllegalArgumentException { return newInstance().path(path); }
/** * 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); }
/** * 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 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 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); }