Subversion Repositories SmartDukaan

Rev

Rev 10331 | Rev 10338 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10331 Rev 10336
Line 31... Line 31...
31
import org.slf4j.Logger;
31
import org.slf4j.Logger;
32
import org.slf4j.LoggerFactory;
32
import org.slf4j.LoggerFactory;
33
 
33
 
34
public class UpdateSDPricingUsingPanel extends Thread{
34
public class UpdateSDPricingUsingPanel extends Thread{
35
	static ClientConnectionManager connManager = new PoolingClientConnectionManager();
35
	static ClientConnectionManager connManager = new PoolingClientConnectionManager();
36
	//private static DefaultHttpClient httpClient = new DefaultHttpClient(connManager);
36
	private static DefaultHttpClient httpClient = new DefaultHttpClient(connManager);
37
	private static DefaultHttpClient httpClient = new DefaultHttpClient();
37
	//private static DefaultHttpClient httpClient = new DefaultHttpClient();
38
	private Float price;
38
	private Float price;
39
	private String supc;
39
	private String supc;
40
	private Item item;
40
	private Item item;
41
	private Long timestamp;
41
	private Long timestamp;
42
	//public String[] sendTo = new String[]{"vikram.raghav@shop2020.in"};
42
	//public String[] sendTo = new String[]{"vikram.raghav@shop2020.in"};
Line 87... Line 87...
87
		 HttpResponse response = null;
87
		 HttpResponse response = null;
88
		 try {
88
		 try {
89
			 response = httpClient.execute(get);
89
			 response = httpClient.execute(get);
90
		 } catch (ClientProtocolException e) {
90
		 } catch (ClientProtocolException e) {
91
			 e.printStackTrace();
91
			 e.printStackTrace();
92
			 logger.info("Exception " + e);
92
			 logger.error("Exception ",e);
93
		 } catch (IOException e) {
93
		 } catch (IOException e) {
94
			 e.printStackTrace();
94
			 e.printStackTrace();
95
			 logger.info("Exception " + e);
95
			 logger.info("Exception " + e);
96
		 }
96
		 }
97
		 BufferedReader rd = null;
97
		 BufferedReader rd = null;