Subversion Repositories SmartDukaan

Rev

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

Rev 1034 Rev 1044
Line 9... Line 9...
9
import javax.servlet.http.Cookie;
9
import javax.servlet.http.Cookie;
10
import javax.servlet.http.HttpServletRequest;
10
import javax.servlet.http.HttpServletRequest;
11
import javax.servlet.http.HttpServletResponse;
11
import javax.servlet.http.HttpServletResponse;
12
import javax.servlet.http.HttpSession;
12
import javax.servlet.http.HttpSession;
13
 
13
 
14
import org.apache.juli.logging.Log;
14
import org.apache.log4j.Logger;
15
import org.apache.juli.logging.LogFactory;
-
 
16
import org.apache.struts2.ServletActionContext;
15
import org.apache.struts2.ServletActionContext;
17
 
16
 
18
import com.opensymphony.xwork2.ActionInvocation;
17
import com.opensymphony.xwork2.ActionInvocation;
19
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
18
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
20
 
19
 
21
public class UserInterceptor extends AbstractInterceptor {
20
public class UserInterceptor extends AbstractInterceptor {
22
 
21
 
23
	private static final int SECONDS_IN_YEAR = 60*60*24*365; 
22
	private static final int SECONDS_IN_YEAR = 60*60*24*365; 
24
	
23
	
25
	private static final long serialVersionUID = -4125815700236506235L;
24
	private static final long serialVersionUID = -4125815700236506235L;
26
	private static Log log = LogFactory.getLog(UserInterceptor.class);
25
	private static Logger log = Logger.getLogger(UserInterceptor.class);
27
	
26
	
28
	public static final String USER_INFO = "userinfo";
27
	public static final String USER_INFO = "userinfo";
29
	
28
	
30
	private Map<String, Cookie> cookiesMap = null;
29
	private Map<String, Cookie> cookiesMap = null;
31
	private Cookie userCookie = null;
30
	private Cookie userCookie = null;