01: package com.icesoft.faces.webapp.http.servlet;
02:
03: import javax.servlet.ServletContext;
04: import javax.servlet.http.HttpSession;
05: import javax.servlet.http.HttpSessionContext;
06: import java.util.Enumeration;
07:
08: public class ProxyHttpSession implements HttpSession {
09: protected HttpSession session;
10:
11: public ProxyHttpSession(HttpSession session) {
12: this .session = session;
13: }
14:
15: public long getCreationTime() {
16: return session.getCreationTime();
17: }
18:
19: public String getId() {
20: return session.getId();
21: }
22:
23: public long getLastAccessedTime() {
24: return getLastAccessedTime();
25: }
26:
27: public ServletContext getServletContext() {
28: return session.getServletContext();
29: }
30:
31: public void setMaxInactiveInterval(int i) {
32: session.setMaxInactiveInterval(i);
33: }
34:
35: public int getMaxInactiveInterval() {
36: return session.getMaxInactiveInterval();
37: }
38:
39: public HttpSessionContext getSessionContext() {
40: return session.getSessionContext();
41: }
42:
43: public Object getAttribute(String string) {
44: return session.getAttribute(string);
45: }
46:
47: public Object getValue(String string) {
48: return session.getValue(string);
49: }
50:
51: public Enumeration getAttributeNames() {
52: return session.getAttributeNames();
53: }
54:
55: public String[] getValueNames() {
56: return session.getValueNames();
57: }
58:
59: public void setAttribute(String string, Object object) {
60: session.setAttribute(string, object);
61: }
62:
63: public void putValue(String string, Object object) {
64: session.putValue(string, object);
65: }
66:
67: public void removeAttribute(String string) {
68: session.removeAttribute(string);
69: }
70:
71: public void removeValue(String string) {
72: session.removeValue(string);
73: }
74:
75: public void invalidate() {
76: session.invalidate();
77: }
78:
79: public boolean isNew() {
80: return session.isNew();
81: }
82: }
|