private HttpEntity executeGet(String url,String[][] getParams,String[][] headerParams) throws IOException {
  if (getParams != null) {
    List<NameValuePair> formparams=new ArrayList<NameValuePair>();
    for (    String[] param : getParams) {
      if (param[0] != null && param[1] != null) {
        formparams.add(new BasicNameValuePair(param[0],param[1]));
      }
    }
    url=url + "?" + URLEncodedUtils.format(formparams,"UTF-8");
  }
  HttpGet httpget=new HttpGet(url);
  if (headerParams != null) {
    for (    String[] param : headerParams) {
      if (param[0] != null && param[1] != null) {
        httpget.setHeader(param[0],param[1]);
      }
    }
  }
  return executeHttpRequest(httpget);
}

private HttpEntity executeGet ( String url , String [ ] [ ] getParams , String [ ] [ ] headerParams ) throws IOException { if ( getParams != null ) { List < NameValuePair > formparams = new ArrayList < NameValuePair > ( ) ; for ( String [ ] param : getParams ) { if ( param [ 0 ] != null && param [ 1 ] != null ) { formparams . add ( new BasicNameValuePair ( param [ 0 ] , param [ 1 ] ) ) ; } } url = url + "?" + URLEncodedUtils . format ( formparams , "UTF-8" ) ; } HttpGet httpget = new HttpGet ( url ) ; if ( headerParams != null ) { for ( String [ ] param : headerParams ) { if ( param [ 0 ] != null && param [ 1 ] != null ) { httpget . setHeader ( param [ 0 ] , param [ 1 ] ) ; } } } return executeHttpRequest ( httpget ) ; }
executes get request on given url with get parameters and header parameters .
