-
public class HttpClientUtils
-
-
Field Summary
Fields Modifier and Type Field Description private final RegexURL_REGEXpublic final static HttpClientUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final URIbuildUrl(String baseUrl, String url, Boolean encodePath)Constructs a URI from a base URL plus a URL path final URIpathCombiner(URIBuilder builder, String url)final BooleanisJsonResponse(ContentType contentType)final RegexgetURL_REGEX()-
-
Method Detail
-
buildUrl
@JvmOverloads() final URI buildUrl(String baseUrl, String url, Boolean encodePath)
Constructs a URI from a base URL plus a URL path
- Parameters:
baseUrl- The base URL for relative paths.url- The URL.encodePath- If the path should be URI encoded, defaults to true
-
pathCombiner
final URI pathCombiner(URIBuilder builder, String url)
-
isJsonResponse
final Boolean isJsonResponse(ContentType contentType)
-
getURL_REGEX
final Regex getURL_REGEX()
-
-
-
-