1 33 34 37 package com.icesoft.faces.context; 38 39 import javax.servlet.http.HttpSession ; 40 import java.util.Enumeration ; 41 42 public class SessionMap extends AbstractAttributeMap { 43 private final HttpSession httpSession; 44 45 public SessionMap(HttpSession httpSession) { 46 this.httpSession = httpSession; 47 } 48 49 52 protected Object getAttribute(String key) { 53 return httpSession.getAttribute(key); 54 } 55 56 59 protected void setAttribute(String key, Object value) { 60 httpSession.setAttribute(key, value); 61 } 62 63 66 protected void removeAttribute(String key) { 67 httpSession.removeAttribute(key); 68 } 69 70 73 protected Enumeration getAttributeNames() { 74 return httpSession.getAttributeNames(); 75 } 76 77 } | Popular Tags |