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
IOException
public static HttpUtils.Response post(URL url, String data, Map<String,String> headers) throws IOException
IOException
public static HttpUtils.Response put(URL url, String data, Map<String,String> headers) throws IOException
IOException
public static HttpUtils.Response doRequest(URL url, String data, Map<String,String> headers, String method) throws IOException
IOException
Copyright © 2004-2015. All Rights Reserved.