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
IOException
public static HttpURLConnection openPostConnection(URL url) throws IOException
IOException
public static HttpURLConnection openDeleteConnection(URL url) throws IOException
IOException
public static HttpURLConnection openConnection(URL url, String requestMethod) throws IOException
IOException
public static String encodeQueryParam(String paramName, String paramValue) throws UnsupportedEncodingException
UnsupportedEncodingException
public static void closeConnection(HttpURLConnection connection)
Copyright © 2016. All rights reserved.