public class RestClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RestClient.OutputLogger |
| Constructor and Description |
|---|
RestClient() |
| Modifier and Type | Method and Description |
|---|---|
static Map |
get(String urlStr,
Map<String,String> headers) |
static void |
get(String urlStr,
Map<String,String> headers,
RestClient.OutputLogger logger) |
static Map |
patch(String urlStr,
String data,
Map<String,String> headers) |
static Map |
post(String urlStr,
Map<String,String> headers) |
static Map |
post(String urlStr,
String data,
Map<String,String> headers) |
static void |
put(String urlStr,
File file,
Logger uploadListener) |
static List |
put(String urlStr,
String data,
Map<String,String> headers) |
public static Map get(String urlStr, Map<String,String> headers) throws IOException
IOExceptionpublic static void get(String urlStr, Map<String,String> headers, RestClient.OutputLogger logger) throws IOException
IOExceptionpublic static List put(String urlStr, String data, Map<String,String> headers) throws IOException
IOExceptionpublic static Map post(String urlStr, Map<String,String> headers) throws IOException
IOExceptionpublic static Map post(String urlStr, String data, Map<String,String> headers) throws IOException
IOExceptionpublic static Map patch(String urlStr, String data, Map<String,String> headers) throws IOException
IOExceptionpublic static void put(String urlStr, File file, Logger uploadListener) throws IOException
IOExceptionCopyright © 2016. All rights reserved.