How to convert List<NameValuePair> into a hashMap<String, String>?

Viewed 6387

I'm capturing parameters from a request url using com.apache.http.NameValuePairwhich basically store those params in List<NameValuePair>. To do certain checks and verifications on those params, I need to convert that list into a HashMap<String, String>. Is there a way to do this conversion?

2 Answers
Related