Subversion Repositories SmartDukaan

Rev

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

Rev 6524 Rev 6612
Line 5... Line 5...
5
 
5
 
6
import javax.servlet.http.HttpServletRequest;
6
import javax.servlet.http.HttpServletRequest;
7
 
7
 
8
import org.apache.struts2.interceptor.ServletRequestAware;
8
import org.apache.struts2.interceptor.ServletRequestAware;
9
import org.apache.thrift.TException;
9
import org.apache.thrift.TException;
-
 
10
import org.slf4j.Logger;
-
 
11
import org.slf4j.LoggerFactory;
-
 
12
 
10
import com.opensymphony.xwork2.ActionSupport;
13
import com.opensymphony.xwork2.ActionSupport;
11
 
14
 
12
public class PincodeController extends ActionSupport implements ServletRequestAware {
15
public class PincodeController extends ActionSupport implements ServletRequestAware {
13
	
16
	
14
	private Long provider;
17
	private Long provider;
Line 22... Line 25...
22
	private boolean codService = false;
25
	private boolean codService = false;
23
	private boolean expService = false;
26
	private boolean expService = false;
24
	private boolean otgService = false;
27
	private boolean otgService = false;
25
	private int stationType_int = 1;
28
	private int stationType_int = 1;
26
	
29
	
-
 
30
	private static Logger logger = LoggerFactory.getLogger(PincodeController.class);
-
 
31
	
27
	@Override
32
	@Override
28
	public void setServletRequest(HttpServletRequest arg0) {
33
	public void setServletRequest(HttpServletRequest arg0) {
29
		// TODO Auto-generated method stub
34
		// TODO Auto-generated method stub
30
		
35
		
31
	}
36
	}
Line 37... Line 42...
37
		return null;
42
		return null;
38
	}
43
	}
39
 
44
 
40
	public String updatePincode() throws TException{
45
	public String updatePincode() throws TException{
41
		setBooleanServiceability();
46
		setBooleanServiceability();
-
 
47
		logger.info("provider = " + provider + " pincode " + pincode + " exp = " + expService + " cod = " + codService + " otg = " + otgService);
42
		Client logisticsClient = new LogisticsClient().getClient();
48
		Client logisticsClient = new LogisticsClient().getClient();
43
		logisticsClient.updatePincode(provider, pincode, expService, codService, otgService);
49
		logisticsClient.updatePincode(provider, pincode, expService, codService, otgService);
44
		return null;
50
		return null;
45
	}
51
	}
46
	
52