public class RestUtil extends Object
| Constructor and Description |
|---|
RestUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute(String method,
String urlRoot,
String path,
String urlParameters) |
static Map<String,String> |
extractResponse(String response) |
String |
get(String urlRoot,
String path) |
void |
getGAImg(String urlRoot,
String path) |
Map<String,String> |
post(String urlRoot,
String path,
Map<String,String> data) |
static String |
prepareResponse(String key,
String data) |
public String get(String urlRoot, String path) throws CogrooException
CogrooExceptionpublic Map<String,String> post(String urlRoot, String path, Map<String,String> data) throws CogrooException
CogrooExceptionpublic String execute(String method, String urlRoot, String path, String urlParameters) throws CogrooException
CogrooExceptionpublic void getGAImg(String urlRoot, String path) throws CogrooException
CogrooExceptionCopyright © 2012–2017 CoGrOO. All rights reserved.