public class HttpUtils
extends java.lang.Object
Constructor and Description |
---|
HttpUtils() |
Modifier and Type | Method and Description |
---|---|
static java.net.HttpURLConnection |
createHttpConnection(java.net.URL endpointUrl,
java.lang.String httpMethod,
java.util.Map<java.lang.String,java.lang.String> headers) |
static java.lang.String |
executeHttpRequest(java.net.HttpURLConnection connection) |
static java.lang.String |
invokeHttpRequest(java.net.URL endpointUrl,
java.lang.String httpMethod,
java.util.Map<java.lang.String,java.lang.String> headers,
byte[] requestBody)
Makes a http request to the specified endpoint
|
static java.lang.String |
urlEncode(java.lang.String url,
boolean keepPathSlash) |
public static java.lang.String invokeHttpRequest(java.net.URL endpointUrl, java.lang.String httpMethod, java.util.Map<java.lang.String,java.lang.String> headers, byte[] requestBody)
public static java.lang.String executeHttpRequest(java.net.HttpURLConnection connection)
public static java.net.HttpURLConnection createHttpConnection(java.net.URL endpointUrl, java.lang.String httpMethod, java.util.Map<java.lang.String,java.lang.String> headers)
public static java.lang.String urlEncode(java.lang.String url, boolean keepPathSlash)