This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String postMethod(String conUrl, JSONObject nvps) throws Exception { | |
String result = null; | |
InputStream is = null; | |
HttpClient httpclient = new DefaultHttpClient(); | |
URI u = new URI(conUrl); | |
HttpPost httppost = new HttpPost(u); | |
HttpParams httpParameters = new BasicHttpParams(); | |
int timeoutConnection = 24000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.HashSet; | |
public class Foo { | |
public static void main(String args[]) { | |
ArrayList<User> usersList = new ArrayList<User>(); |