public class RuntimeHttpUtils extends Object
Constructor | Description |
---|---|
RuntimeHttpUtils() |
Modifier and Type | Method | Description |
---|---|---|
static URL |
convertRequestToUrl(SdkHttpFullRequest request,
boolean removeLeadingSlashInResourcePath,
boolean urlEncode) |
Converts the specified request object into a URL, containing all the specified parameters, the specified request endpoint,
etc.
|
static URL |
convertRequestToUrl(Request<?> request,
boolean removeLeadingSlashInResourcePath,
boolean urlEncode) |
Deprecated.
|
static String |
getUserAgent(LegacyClientConfiguration config,
String userAgentMarker) |
|
static URI |
toUri(String endpoint,
LegacyClientConfiguration config) |
Returns an URI for the given endpoint.
|
static URI |
toUri(String endpoint,
Protocol protocol) |
Returns an URI for the given endpoint.
|
public static String getUserAgent(LegacyClientConfiguration config, String userAgentMarker)
public static URI toUri(String endpoint, LegacyClientConfiguration config)
IllegalArgumentException
- if the inputs are null.public static URI toUri(String endpoint, Protocol protocol)
IllegalArgumentException
- if the inputs are null.@Deprecated 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 encodedSdkClientException
- If the request cannot be converted to a well formed URL.public static URL convertRequestToUrl(SdkHttpFullRequest 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 encodedSdkClientException
- If the request cannot be converted to a well formed URL.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.