| Modifier and Type | Method and Description |
|---|---|
static String |
buildHttpErrorMessage(HttpURLConnection connection) |
static void |
closeConnection(HttpURLConnection connection) |
static String |
encodeQueryParam(String paramName,
String paramValue) |
static HttpURLConnection |
openConnection(URL url,
String requestMethod) |
static HttpURLConnection |
openDeleteConnection(URL url) |
static HttpURLConnection |
openPostConnection(URL url) |
public static String buildHttpErrorMessage(HttpURLConnection connection) throws IOException
IOExceptionpublic static HttpURLConnection openPostConnection(URL url) throws IOException
IOExceptionpublic static HttpURLConnection openDeleteConnection(URL url) throws IOException
IOExceptionpublic static HttpURLConnection openConnection(URL url, String requestMethod) throws IOException
IOExceptionpublic static String encodeQueryParam(String paramName, String paramValue) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static void closeConnection(HttpURLConnection connection)
Copyright © 2016. All Rights Reserved.