`
isiqi
  • 浏览: 16593243 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

javax.servlet.http.HttpSessionEvent翻译

阅读更多
<!-- ========= START OF TOP NAVBAR ======= --><!-- -->
JavaTM 2 Platform
Ent. Ed. v1.4
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->

javax.servlet.http
Class HttpSessionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.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 =========== --><!-- -->

Field Summary
<!-- -->
Fields inherited from class java.util.EventObject
source
<!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- -->
Constructor Summary
HttpSessionEvent(HttpSessionsource)
Construct a session event from the given source. 从指定源构建会话事件。
<!-- ========== METHOD SUMMARY =========== --><!-- -->
Method Summary
HttpSession getSession()
Return the session that changed. 返回变更的会话。
<!-- -->
Methods inherited from class java.util.EventObject
getSource, toString
<!-- -->
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

<!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- -->

Constructor Detail
<!-- -->

HttpSessionEvent

public HttpSessionEvent(HttpSessionsource)
Construct a session event from the given source. 从指定源构建会话事件。
<!-- ============ METHOD DETAIL ========== --><!-- -->
Method Detail
<!-- -->

getSession

public HttpSession getSession()
Return the session that changed. 返回变更的会话。
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== --><!-- -->
JavaTM 2 Platform
Ent. Ed. v1.4
<!-- ======== END OF BOTTOM NAVBAR ======= -->
Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.

分享到:
评论

相关推荐

    javax.servlet.jar下载

    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;异常

    servlet-api.jar 适用于import javax.servlet.http.HttpSession;异常 直接下载后直接导入 即可,

    servlet-api-2.4.jar.zip

    javax.servlet.http.HttpSessionEvent javax.servlet.ServletContextListener javax.servlet.ServletRequestListener javax.servlet.ServletResponseWrapper javax.servlet.http.HttpServletRequest javax.servlet....

    servlet2.4doc

    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...

    [课堂课件讲解]Java微服务实践-Spring Boot Web篇(下).pptx

    包括 javax.servlet.ServletContextEvent、javax.servlet.http.HttpSessionEvent、java.servlet.ServletRequestEvent 等。 7. Servlet 3.0 前时代的监听器 包括 javax.servlet.ServletContextListener、javax....

    javaweb监听session

    import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionMonitor implements HttpSessionListener { @Override public void sessionCreated...

    servlet监听器实现踢人小案例

    import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionListener implements HttpSessionListener { @Override public void sessionCreated...

    Java实训教程 Java软件开发实战 web开发技术 第6章 listener 共21页.pptx

    public class HttpSessionListenerExample implements javax.servlet.http.HttpSessionListener { @Override public void sessionCreated(HttpSessionEvent se) { HttpSession session = se.getSession(); ...

    servlet 监听器的实现

    import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class MySessionListener implements HttpSessionListener { @Override public void sessionCreated...

    servlet 监听器范例

    import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class OnlineUserCounter implements HttpSessionListener { private static int onlineUsers = 0; @...

    java 同一用户不能同时登陆问题

    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; ...

    servlet基础与高级技术

    3. **Servlet API**:Java Servlet API提供了用于开发Servlet的接口和类,如`javax.servlet.Servlet`、`javax.servlet.http.HttpServlet`、`javax.servlet.ServletRequest`和`javax.servlet.ServletResponse`等。...

    利用HttpSessionListerner实现在线人数统计

    import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class OnlineUserCounter implements HttpSessionListener { private static int onlineUsers = 0; @...

    jsp 登录servlet

    import javax.servlet.http.*; import java.io.*; public class LoginServlet extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException...

    监听session的创建到销毁

    import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionMonitor implements HttpSessionListener { @Override public void sessionCreated...

    Java基于servlet监听器实现在线人数监控功能的方法

    import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class OnlineListener implements ServletContextListener, HttpSessionAttributeListener, ...

    listener的实例代码

    import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class MyHttpSessionListener implements HttpSessionListener { @Override public void sessionCreated...

    java统计在线人数

    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; @...

Global site tag (gtag.js) - Google Analytics