ShiroHttpServletRequest类一些笔记

浏览:1098 发布日期:2023-11-05 21:48:01

8个servlet规范相关的常量

  1. COOKIE_SESSION_ID_SOURCE = "cookie" 表示sessionId来自cookie

  2. URL_SESSION_ID_SOURCE = "url" 表示sessionId来自url重写。

  3. COOKIE_SESSION_ID_SOURCE = "ShiroHttpServletRequest.class.getName() + "REFERENCED_SESSION_ID_SOURCE""表示session来自哪里?(cookie或url)。

  4. REFERENCED_SESSION_ID = ShiroHttpServletRequest.class.getName() + "_REQUESTED_SESSION_ID":整个常量表示键,值是sesionId

  5. REFERENCED_SESSION_ID_IS_VALID = ShiroHttpServletRequest.class.getName() + "_REQUESTED_SESSION_ID_VALID":表示session是否有效的键,值是TrueFalse

  6. REFERENCED_SESSION_IS_NEW = ShiroHttpServletRequest.class.getName() + "_REFERENCED_SESSION_IS_NEW":表示session是否是新创建的。

  7. IDENTITY_REMOVED_KEY = ShiroHttpServletRequest.class.getName() + "_IDENTITY_REMOVED_KEY":表示身份信息已删除的键,值是TrueFalse,

  8. SESSION_ID_URL_REWRITING_ENABLED = ShiroHttpServletRequest.class.getName() + "_SESSION_ID_URL_REWRITING_ENABLED":url是否启用了重写的键,值是TrueFalse