public class RuntimeHttpUtils
extends java.lang.Object
| Constructor and Description |
|---|
RuntimeHttpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.net.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 java.net.URI |
toUri(java.lang.String endpoint,
ClientConfiguration config) |
static java.net.URI |
toUri(java.lang.String endpoint,
Protocol protocol) |
public static java.net.URI toUri(java.lang.String endpoint,
ClientConfiguration config)
endpoint - the endpoint.config - the client configuration.java.lang.IllegalArgumentException - if the inputs are null.public static java.net.URI toUri(java.lang.String endpoint,
Protocol protocol)
endpoint - the endpoint.protocol - the protocol.java.lang.IllegalArgumentException - if the inputs are null.public static java.net.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 encoded