org.cogroo.addon.util
Class RestUtil
java.lang.Object
org.cogroo.addon.util.RestUtil
public class RestUtil
- extends Object
Method Summary |
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)
|
RestUtil
public RestUtil()
get
public String get(String urlRoot,
String path)
throws CogrooException
- Throws:
CogrooException
post
public Map<String,String> post(String urlRoot,
String path,
Map<String,String> data)
throws CogrooException
- Throws:
CogrooException
execute
public String execute(String method,
String urlRoot,
String path,
String urlParameters)
throws CogrooException
- Throws:
CogrooException
getGAImg
public void getGAImg(String urlRoot,
String path)
throws CogrooException
- Throws:
CogrooException
prepareResponse
public static String prepareResponse(String key,
String data)
extractResponse
public static Map<String,String> extractResponse(String response)
Copyright © 2012-2013 CoGrOO. All Rights Reserved.