public class HttpUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpUtils.Response |
| Constructor and Description |
|---|
HttpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static HttpUtils.Response |
doRequest(URL url,
String data,
Map<String,String> headers,
String method) |
static HttpUtils.Response |
get(URL url,
Map<String,String> headers) |
static HttpUtils.Response |
post(URL url,
String data,
Map<String,String> headers) |
static HttpUtils.Response |
put(URL url,
String data,
Map<String,String> headers) |
public static HttpUtils.Response get(URL url, Map<String,String> headers) throws IOException
IOExceptionpublic static HttpUtils.Response post(URL url, String data, Map<String,String> headers) throws IOException
IOExceptionpublic static HttpUtils.Response put(URL url, String data, Map<String,String> headers) throws IOException
IOExceptionpublic static HttpUtils.Response doRequest(URL url, String data, Map<String,String> headers, String method) throws IOException
IOExceptionCopyright © 2004-2015. All Rights Reserved.