<!-- ========= START OF TOP NAVBAR ======= -->
<!-- -->
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
javax.servlet.http
Class HttpSessionEvent
java.lang.Object
java.util.EventObject
javax.servlet.http.HttpSessionEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpSessionBindingEvent
public class HttpSessionEvent
extends EventObject
This is the class representing event notifications for changes to sessions within a web application. 该类表示web应用中会话变更引发的事件通知。
Since:
v 2.3
See Also:
Serialized Form
<!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- -->
<!-- -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<!-- -->
<!-- ========== METHOD SUMMARY =========== -->
<!-- -->
<!-- -->
<!-- -->
<!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- -->
<!-- -->
HttpSessionEvent
public HttpSessionEvent(HttpSessionsource)
Construct a session event from the given source. 从指定源构建会话事件。
<!-- ============ METHOD DETAIL ========== -->
<!-- -->
<!-- -->
getSession
public HttpSession getSession()
Return the session that changed. 返回变更的会话。
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<!-- -->
<!-- ======== END OF BOTTOM NAVBAR ======= -->
Submit a bug or feature
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
分享到:
相关推荐
javax.servlet.http.HttpSessionEvent.class javax.servlet.http.HttpSession.class javax.servlet.http.HttpSessionContext.class javax.servlet.http.Cookie.class javax.servlet....
servlet-api.jar 适用于import javax.servlet.http.HttpSession;异常 直接下载后直接导入 即可,
javax.servlet.http.HttpSessionEvent javax.servlet.ServletContextListener javax.servlet.ServletRequestListener javax.servlet.ServletResponseWrapper javax.servlet.http.HttpServletRequest javax.servlet....
addCookie(Cookie) - Method in class javax.servlet.http.HttpServletResponseWrapper The default behavior of this method is to call addCookie(Cookie cookie) on the wrapped response object. addCookie...
包括 javax.servlet.ServletContextEvent、javax.servlet.http.HttpSessionEvent、java.servlet.ServletRequestEvent 等。 7. Servlet 3.0 前时代的监听器 包括 javax.servlet.ServletContextListener、javax....
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionMonitor implements HttpSessionListener { @Override public void sessionCreated...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionListener implements HttpSessionListener { @Override public void sessionCreated...
public class HttpSessionListenerExample implements javax.servlet.http.HttpSessionListener { @Override public void sessionCreated(HttpSessionEvent se) { HttpSession session = se.getSession(); ...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class MySessionListener implements HttpSessionListener { @Override public void sessionCreated...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class OnlineUserCounter implements HttpSessionListener { private static int onlineUsers = 0; @...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; import org.apache.struts2.ServletActionContext; import com.jswf.sys.SysParams; import com.jswf.vo.UserVo; ...
3. **Servlet API**:Java Servlet API提供了用于开发Servlet的接口和类,如`javax.servlet.Servlet`、`javax.servlet.http.HttpServlet`、`javax.servlet.ServletRequest`和`javax.servlet.ServletResponse`等。...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class OnlineUserCounter implements HttpSessionListener { private static int onlineUsers = 0; @...
import javax.servlet.http.*; import java.io.*; public class LoginServlet extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionMonitor implements HttpSessionListener { @Override public void sessionCreated...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class OnlineListener implements ServletContextListener, HttpSessionAttributeListener, ...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class MyHttpSessionListener implements HttpSessionListener { @Override public void sessionCreated...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class OnlineUserCounter implements HttpSessionListener { @Override public void sessionCreated...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionListener implements HttpSessionListener, HttpSessionAttributeListener { private static ...
import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class OnlineUserCounter implements HttpSessionListener { private static int onlineCount = 0; @...