| Line 1... |
Line 1... |
| 1 |
package in.shop2020.serving.controllers;
|
1 |
package in.shop2020.serving.controllers;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.model.v1.shoppingcart.Cart;
|
- |
|
| 4 |
import in.shop2020.model.v1.shoppingcart.ShoppingCartException;
|
3 |
import in.shop2020.model.v1.shoppingcart.ShoppingCartException;
|
| 5 |
import in.shop2020.serving.controllers.BaseController;
|
4 |
import in.shop2020.serving.controllers.BaseController;
|
| 6 |
import in.shop2020.serving.pages.PageContentKeys;
|
5 |
import in.shop2020.serving.pages.PageContentKeys;
|
| 7 |
import in.shop2020.serving.pages.PageEnum;
|
6 |
import in.shop2020.serving.pages.PageEnum;
|
| 8 |
import in.shop2020.serving.pages.PageManager;
|
7 |
import in.shop2020.serving.pages.PageManager;
|
| Line 10... |
Line 9... |
| 10 |
import in.shop2020.thrift.clients.ShoppingCartClient;
|
9 |
import in.shop2020.thrift.clients.ShoppingCartClient;
|
| 11 |
import in.shop2020.thrift.clients.UserContextServiceClient;
|
10 |
import in.shop2020.thrift.clients.UserContextServiceClient;
|
| 12 |
|
11 |
|
| 13 |
import java.util.*;
|
12 |
import java.util.*;
|
| 14 |
|
13 |
|
| 15 |
import javax.servlet.http.Cookie;
|
- |
|
| 16 |
import javax.servlet.http.HttpServletRequest;
|
- |
|
| 17 |
|
- |
|
| 18 |
import org.apache.commons.lang.StringUtils;
|
- |
|
| 19 |
import org.apache.juli.logging.Log;
|
14 |
import org.apache.juli.logging.Log;
|
| 20 |
import org.apache.juli.logging.LogFactory;
|
15 |
import org.apache.juli.logging.LogFactory;
|
| 21 |
import org.apache.struts2.convention.annotation.Result;
|
16 |
import org.apache.struts2.convention.annotation.Result;
|
| 22 |
import org.apache.struts2.convention.annotation.Results;
|
17 |
import org.apache.struts2.convention.annotation.Results;
|
| 23 |
import org.apache.struts2.interceptor.ParameterAware;
|
18 |
import org.apache.struts2.interceptor.ParameterAware;
|
| 24 |
import org.apache.struts2.interceptor.ServletRequestAware;
|
- |
|
| 25 |
import org.apache.struts2.rest.DefaultHttpHeaders;
|
19 |
import org.apache.struts2.rest.DefaultHttpHeaders;
|
| 26 |
import org.apache.struts2.rest.HttpHeaders;
|
20 |
import org.apache.struts2.rest.HttpHeaders;
|
| 27 |
import org.apache.thrift.TException;
|
21 |
import org.apache.thrift.TException;
|
| 28 |
|
22 |
|
| 29 |
import com.opensymphony.xwork2.ValidationAwareSupport;
|
- |
|
| 30 |
|
23 |
|
| 31 |
@Results({
|
24 |
@Results({
|
| 32 |
@Result(name="fail", type="redirectAction",
|
25 |
@Result(name="fail", type="redirectAction",
|
| 33 |
params = {"actionName" , "cart"}),
|
26 |
params = {"actionName" , "cart"}),
|
| 34 |
@Result(name="redirect", location="${url}", type="redirect")
|
27 |
@Result(name="redirect", location="${url}", type="redirect")
|