public class SdkHttpUtils extends Object
Constructor and Description |
---|
SdkHttpUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
appendUri(String baseUri,
String path,
boolean escapeDoubleSlash)
Append the given path to the given baseUri.
|
static String |
encodeParameters(SdkHttpFullRequest request)
Creates an encoded query string from all the parameters in the specified
request.
|
static boolean |
isUsingNonDefaultPort(URI uri)
Returns true if the specified URI is using a non-standard port (i.e.
|
public static boolean isUsingNonDefaultPort(URI uri)
public static String encodeParameters(SdkHttpFullRequest request)
request
- The request containing the parameters to encode.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. All rights reserved.