public class RuntimeHttpUtils extends Object
| Constructor and Description |
|---|
RuntimeHttpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static URL |
convertRequestToUrl(Request<?> request,
boolean removeLeadingSlashInResourcePath,
boolean urlEncode)
Converts the specified request object into a URL, containing all the
specified parameters, the specified request endpoint, etc.
|
static URI |
toUri(String endpoint,
ClientConfiguration config) |
static URI |
toUri(String endpoint,
Protocol protocol) |
public static URI toUri(String endpoint, ClientConfiguration config)
endpoint - the endpoint.config - the client configuration.IllegalArgumentException - if the inputs are null.public static URI toUri(String endpoint, Protocol protocol)
endpoint - the endpoint.protocol - the protocol.IllegalArgumentException - if the inputs are null.public static URL convertRequestToUrl(Request<?> request, boolean removeLeadingSlashInResourcePath, boolean urlEncode)
request - The request to convert into a URL.removeLeadingSlashInResourcePath - Whether the leading slash in
resource-path should be removed before appending to the
endpoint.urlEncode - True if request resource path should be URL encodedCopyright © 2019. All rights reserved.