public final class UrlUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static URL |
appendQueryToBaseURL(URL baseURL,
String query)
Append the base url with the query.
|
static URL |
appendToBaseURL(URL baseURL,
String endpoint)
Append the base url with endpoint
|
public static URL appendToBaseURL(URL baseURL, String endpoint)
baseURL - the base urlendpoint - the string to append to the base urlIllegalArgumentException - if baseUrl+endpoint is not a real url.public static URL appendQueryToBaseURL(URL baseURL, String query)
baseURL - the base url to append a query toquery - the query to append.IllegalArgumentException - if baseUrl+endpoint is not a real url.Copyright © 2015 JBoss by Red Hat. All rights reserved.