public class SdkHttpUtils extends Object
| Constructor | Description |
|---|---|
SdkHttpUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static String |
appendUri(String baseUri,
String path) |
Append the given path to the given baseUri.
|
static String |
appendUri(String baseUri,
String path,
boolean escapeDoubleSlash) |
Append the given path to the given baseUri.
|
static String |
encodeParameters(SdkHttpRequest request) |
|
static boolean |
isUsingNonDefaultPort(URI uri) |
Returns true if the specified URI is using a non-standard port (i.e.
|
static String |
urlDecode(String value) |
Decode a string for use in the path of a URL; uses URLDecoder.decode,
which decodes a string for use in the query portion of a URL.
|
static String |
urlEncode(String value,
boolean path) |
Encode a string for use in the path of a URL; uses URLEncoder.encode,
(which encodes a string for use in the query portion of a URL), then
applies some postfilters to fix things up per the RFC.
|
public static String urlEncode(String value, boolean path)
value - the value to encodepath - true if the value is intended to represent a pathpublic static String urlDecode(String value)
value - The value to decodepublic static boolean isUsingNonDefaultPort(URI uri)
public static String encodeParameters(SdkHttpRequest request)
public static String appendUri(String baseUri, String path)
public static String appendUri(String baseUri, String path, boolean escapeDoubleSlash)
baseUri - The URI to append to (required, may be relative)path - The path to append (may be null or empty). Path should be pre-encoded.escapeDoubleSlash - Whether double-slash in the path should be escaped to "/%2F"Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.