1 16 package org.apache.cocoon.environment.http; 17 18 import org.apache.cocoon.environment.Session; 19 20 import java.util.Enumeration ; 21 22 50 51 public final class HttpSession 52 implements Session { 53 54 javax.servlet.http.HttpSession wrappedSession; 55 56 59 public HttpSession(javax.servlet.http.HttpSession session) { 60 this.wrappedSession = session; 61 } 62 63 77 public long getCreationTime() { 78 return this.wrappedSession.getCreationTime(); 79 } 80 81 94 public String getId() { 95 return this.wrappedSession.getId(); 96 } 97 98 118 119 public long getLastAccessedTime() { 120 return this.wrappedSession.getLastAccessedTime(); 121 } 122 123 133 public void setMaxInactiveInterval(int interval) { 134 this.wrappedSession.setMaxInactiveInterval(interval); 135 } 136 137 154 public int getMaxInactiveInterval() { 155 return this.wrappedSession.getMaxInactiveInterval(); 156 } 157 158 171 public Object getAttribute(String name) { 172 return this.wrappedSession.getAttribute(name); 173 } 174 175 189 public Enumeration getAttributeNames() { 190 return this.wrappedSession.getAttributeNames(); 191 } 192 193 208 public void setAttribute(String name, Object value) { 209 this.wrappedSession.setAttribute(name, value); 210 } 211 212 225 public void removeAttribute(String name) { 226 this.wrappedSession.removeAttribute(name); 227 } 228 229 238 public void invalidate() { 239 this.wrappedSession.invalidate(); 240 } 241 242 258 public boolean isNew() { 259 return this.wrappedSession.isNew(); 260 } 261 262 } 263 264 | Popular Tags |