public class HttpUtils extends Object
Constructor and Description |
---|
HttpUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
appendUri(String baseUri,
String path)
Deprecated.
|
static String |
appendUri(String baseUri,
String path,
boolean escapeDoubleSlash)
Deprecated.
|
static String |
encodeParameters(Request<?> request)
Deprecated.
|
static InputStream |
fetchFile(URI uri,
ClientConfiguration config)
Fetches a file from the URI given and returns an input stream to it.
|
static boolean |
isUsingNonDefaultPort(URI uri)
Deprecated.
|
static URI |
toUri(String endpoint,
ClientConfiguration config)
Returns an URI for the given endpoint.
|
static String |
urlEncode(String value,
boolean path)
Deprecated.
|
static boolean |
usePayloadForQueryParameters(Request<?> request)
|
@Deprecated public static String urlEncode(String value, boolean path)
SdkHttpUtils.urlEncode(String, boolean)
@Deprecated public static boolean isUsingNonDefaultPort(URI uri)
SdkHttpUtils.isUsingNonDefaultPort(URI)
@Deprecated public static boolean usePayloadForQueryParameters(Request<?> request)
@Deprecated public static String encodeParameters(Request<?> request)
SdkHttpUtils.encodeParameters(com.amazonaws.SignableRequest)
@Deprecated public static String appendUri(String baseUri, String path)
SdkHttpUtils.appendUri(String, String)
@Deprecated public static String appendUri(String baseUri, String path, boolean escapeDoubleSlash)
SdkHttpUtils.appendUri(String, String, boolean)
public static InputStream fetchFile(URI uri, ClientConfiguration config) throws IOException
uri
- the uri of the file to fetchconfig
- optional configuration overridesIOException
- on errorpublic static URI toUri(String endpoint, ClientConfiguration config)
IllegalArgumentException
- if the inputs are null.Copyright © 2017. All rights reserved.