public class HttpClientUtils
| Modifier and Type | Field and Description |
|---|---|
static HttpClientUtils |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
buildUrl(java.lang.String baseUrl,
java.lang.String url,
boolean encodePath)
Constructs a URI from a base URL plus a URL path
|
java.net.URI |
buildUrl(java.lang.String baseUrl,
java.lang.String url)
Constructs a URI from a base URL plus a URL path
|
kotlin.text.Regex |
getURL_REGEX() |
boolean |
isJsonResponse(org.apache.http.entity.ContentType contentType) |
public static HttpClientUtils INSTANCE
public kotlin.text.Regex getURL_REGEX()
public java.net.URI buildUrl(java.lang.String baseUrl,
java.lang.String url,
boolean encodePath)
Constructs a URI from a base URL plus a URL path
baseUrl - The base URL for relative paths. If using absolute URLs, pass an empty stringurl - The URL. If a path, it will be relative to the base URLencodePath - If the path should be URI encoded, defaults to truepublic java.net.URI buildUrl(java.lang.String baseUrl,
java.lang.String url)
Constructs a URI from a base URL plus a URL path
baseUrl - The base URL for relative paths. If using absolute URLs, pass an empty stringurl - The URL. If a path, it will be relative to the base URLpublic boolean isJsonResponse(org.apache.http.entity.ContentType contentType)