| 745 |
chandransh |
1 |
package in.shop2020.serving.controllers;
|
|
|
2 |
|
|
|
3 |
import in.shop2020.serving.model.ShipmentUpdate;
|
|
|
4 |
import in.shop2020.serving.services.AramexTrackingService;
|
|
|
5 |
import in.shop2020.serving.services.BlueDartTrackingService;
|
|
|
6 |
|
|
|
7 |
import java.util.List;
|
|
|
8 |
|
|
|
9 |
import org.apache.juli.logging.Log;
|
|
|
10 |
import org.apache.juli.logging.LogFactory;
|
| 832 |
rajveer |
11 |
import org.apache.log4j.Logger;
|
| 745 |
chandransh |
12 |
|
|
|
13 |
public class BluedartUpdatesController extends BaseController {
|
|
|
14 |
|
| 832 |
rajveer |
15 |
private static Logger log = Logger.getLogger(Class.class); private String id;
|
| 745 |
chandransh |
16 |
private List<ShipmentUpdate> updates;
|
|
|
17 |
|
|
|
18 |
public BluedartUpdatesController(){
|
|
|
19 |
super();
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
public String show() {
|
|
|
23 |
log.info("BlueDart Updates Controller " + id);
|
|
|
24 |
BlueDartTrackingService trackingService = new BlueDartTrackingService();
|
|
|
25 |
updates = trackingService.getUpdates(id);
|
|
|
26 |
return "show";
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
public String getId(){
|
|
|
30 |
return id;
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public void setId(String id){
|
|
|
34 |
this.id = id;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public List<ShipmentUpdate> getUpdates(){
|
|
|
38 |
return updates;
|
|
|
39 |
}
|
|
|
40 |
}
|