Subversion Repositories SmartDukaan

Rev

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

Rev 10239 Rev 10240
Line 80... Line 80...
80
 
80
 
81
	 public void handleLogin() throws ClientProtocolException, IOException{
81
	 public void handleLogin() throws ClientProtocolException, IOException{
82
		 logger.info("----Inside Handle Login ----" );
82
		 logger.info("----Inside Handle Login ----" );
83
		 HttpGet get = new HttpGet("http://selleraccounts.snapdeal.com/keymaker/login");
83
		 HttpGet get = new HttpGet("http://selleraccounts.snapdeal.com/keymaker/login");
84
		 HttpResponse response = null;
84
		 HttpResponse response = null;
85
		 client = new DefaultHttpClient();
-
 
86
		 try {
85
		 try {
87
			 response = client.execute(get);
86
			 response = client.execute(get);
88
		 } catch (ClientProtocolException e) {
87
		 } catch (ClientProtocolException e) {
89
			 e.printStackTrace();
88
			 e.printStackTrace();
90
		 } catch (IOException e) {
89
		 } catch (IOException e) {
Line 156... Line 155...
156
		 logger.info("----Login Successful----" );
155
		 logger.info("----Login Successful----" );
157
	 }
156
	 }
158
	 public void run()
157
	 public void run()
159
	 {
158
	 {
160
		 try {
159
		 try {
-
 
160
			 client = new DefaultHttpClient();
161
			 this.handleLogin();
161
			 this.handleLogin();
162
			 this.updatePricing(this.price,this.supc,this.item,timestamp);
162
			 this.updatePricing(this.price,this.supc,this.item,timestamp);
163
			 boolean retry =true;
163
			 boolean retry =true;
164
			 while(retry){
164
			 while(retry){
165
				 Thread.sleep(2*60*1000);
165
				 Thread.sleep(2*60*1000);