1 64 65 package com.jcorporate.expresso.core.jsdkapi; 66 67 72 73 import javax.servlet.ServletException ; 74 import javax.servlet.http.HttpServletRequest ; 75 import java.io.Serializable ; 76 import java.util.Enumeration ; 77 78 79 84 public interface APIAwareSession { 85 86 93 public Serializable getAttribute(HttpServletRequest req, String code) 94 throws ServletException ; 95 96 97 98 105 public Enumeration getAttributeNames(HttpServletRequest req) 106 throws ServletException ; 107 108 109 116 public void setAttribute(HttpServletRequest req, String code, 117 Serializable value) 118 throws ServletException ; 119 120 121 128 public void removeAttribute(HttpServletRequest req, String code) 129 throws ServletException ; 130 131 132 133 138 public void invalidate(HttpServletRequest req); 139 140 141 147 public String getContextPath(HttpServletRequest req); 148 149 155 public String getId(HttpServletRequest req); 156 157 158 } 159 160 | Popular Tags |