title: Can anyone explain me this code?
body: <pre><code>import org.apache.http.message.BasicNameValuePair;
  
  private String getServerData(String returnString) {               
  InputStream is = null;
  
  String result = "";
  //the year data to send
  ArrayList&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;();
  nameValuePairs.add(new BasicNameValuePair("year","1970"));
  
  //http post
  try{
         HttpClient httpclient = new DefaultHttpClient();
         HttpPost httppost = new HttpPost(KEY_121);
         httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
         HttpResponse response = httpclient.execute(httppost);
         HttpEntity entity = response.getEntity();
         is = entity.getContent();
  
  }catch(Exception e){
         Log.e("log_tag", "Error in http connection "+e.toString());
  }
  }
  </code></pre>
  
  <p>My Questions... </p>
  
  <p>What does BasicNameValuePair class does?</p>
  
  <p>What does this piece of line do </p>
  
  <pre><code>httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  </code></pre>
  
  <p>What does <code>is = entity.getContent();</code> do? and can i pass more than one value in BasicNameValuePair class. Can i entirely pass a VO instead of this.</p>
  
  <p>Like the below ... </p>
  
  <pre><code>nameValuePairs.add(new BasicNameValuePair("year","1970","sas","saassa","sas","asas"));
  </code></pre>