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