public HttpResponse executePost(String urlPath, Map<String, Object> parameters) throws Exception { HttpPost httpPost = new HttpPost(urlPath); _buildHttpPostBody(httpPost, parameters); return _httpClient.execute(_httpHost, httpPost, _getBasicHttpContext()); }
public <T> T executePost( String urlPath, Map<String, Object> parameters, Handler<? extends T> handler) throws Exception { HttpPost httpPost = new HttpPost(urlPath); _buildHttpPostBody(httpPost, parameters); return _httpClient.execute(_httpHost, httpPost, handler, _getBasicHttpContext()); }