org.cogroo.addon.util
Class RestUtil

java.lang.Object
  extended by org.cogroo.addon.util.RestUtil

public class RestUtil
extends Object


Constructor Summary
RestUtil()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestUtil

public RestUtil()
Method Detail

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.