コード例 #1
0
  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());
  }
コード例 #2
0
  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());
  }