Subversion Repositories SmartDukaan

Rev

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

Rev 14862 Rev 14947
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
	
36
	private static DefaultHttpClient httpClient = new DefaultHttpClient(connManager);
37
	private static DefaultHttpClient httpClient = new DefaultHttpClient(connManager);
-
 
38
	
37
	//private static DefaultHttpClient httpClient = new DefaultHttpClient();
39
	//private static DefaultHttpClient httpClient = new DefaultHttpClient();
38
	private Float price;
40
	private Float price;
39
	private String supc;
41
	private String supc;
40
	private Item item;
42
	private Item item;
41
	private Long timestamp;
43
	private Long timestamp;
Line 259... Line 261...
259
		logger.info("----Login Successful into Snapdeal VOI----" );
261
		logger.info("----Login Successful into Snapdeal VOI----" );
260
	}
262
	}
261
	public void run()
263
	public void run()
262
	{
264
	{
263
		try {
265
		try {
264
			if(voiUpdation){
266
			if(this.voiUpdation){
265
				this.handleVoiLogin();
267
				this.handleVoiLogin();
266
			}else{
268
			}else{
267
				this.handleLogin();
269
				this.handleLogin();
268
			}
270
			}
269
			this.updatePricing(this.price,this.supc,this.item,timestamp);
271
			this.updatePricing(this.price,this.supc,this.item,timestamp);