Skip navigation links
A C D E F G H I M P R S 

A

access() - Method in class com.yuweix.assist4j.session.CacheHttpSession
表示此Session被访问。
addCookie(HttpServletRequest, HttpServletResponse, String, String) - Static method in class com.yuweix.assist4j.session.CookiesUtil
 
addCookie(HttpServletRequest, HttpServletResponse, String, String, String, String, int) - Static method in class com.yuweix.assist4j.session.CookiesUtil
 
afterCompletion(String) - Method in interface com.yuweix.assist4j.session.cache.SessionCache
session同步完成之后的操作
AttributeData - Class in com.yuweix.assist4j.session
 
AttributeData() - Constructor for class com.yuweix.assist4j.session.AttributeData
 

C

CacheHttpServletRequest - Class in com.yuweix.assist4j.session
HttpServletRequest的包装器,修改了获取Session方法的行为。 现在将返回一个实际型别是(@see com.assist4j.session.CacheHttpSession)的HttpSession实例。 判断Session是否为失效超过最大不活动时间的时机是每次获取Session时。 比如getSession()和getSession(true)都将造成更新最后访问时间。 但是getSession(false)被调用时,如果本身没有绑定Session那么不会有这个动作。
CacheHttpServletRequest(HttpServletRequest, HttpServletResponse) - Constructor for class com.yuweix.assist4j.session.CacheHttpServletRequest
构造一个HttpServletRequest的包装器。
CacheHttpServletRequest(HttpServletRequest, HttpServletResponse, String) - Constructor for class com.yuweix.assist4j.session.CacheHttpServletRequest
 
CacheHttpSession - Class in com.yuweix.assist4j.session
一个HttpSession的实现,实际的属性会储存在指定的缓存实现中。
CacheHttpSession(String) - Constructor for class com.yuweix.assist4j.session.CacheHttpSession
初始化时必须指定一个id字符串和缓存引擎实现。
check() - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
com.yuweix.assist4j.session - package com.yuweix.assist4j.session
 
com.yuweix.assist4j.session.cache - package com.yuweix.assist4j.session.cache
 
com.yuweix.assist4j.session.conf - package com.yuweix.assist4j.session.conf
 
com.yuweix.assist4j.session.filter - package com.yuweix.assist4j.session.filter
 
COOKIE_MAX_AGE_DEFAULT - Static variable in class com.yuweix.assist4j.session.SessionConstant
默认Cookie的生存期为关闭浏览器
COOKIE_SESSION_ID_SUFFIX - Static variable in class com.yuweix.assist4j.session.SessionConstant
 
CookiesUtil - Class in com.yuweix.assist4j.session
Cookie操作工具
CookiesUtil() - Constructor for class com.yuweix.assist4j.session.CookiesUtil
 

D

decode(String) - Method in class com.yuweix.assist4j.session.AttributeData
 
decode(String) - Static method in class com.yuweix.assist4j.session.SessionAttribute
 
DEFAULT_MAX_INACTIVE_INTERVAL - Static variable in class com.yuweix.assist4j.session.SessionConstant
默认session失效时间(分钟)
destroy() - Method in class com.yuweix.assist4j.session.filter.SessionFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.yuweix.assist4j.session.filter.SessionFilter
 

E

encode() - Method in class com.yuweix.assist4j.session.AttributeData
 
encode(SessionAttribute) - Static method in class com.yuweix.assist4j.session.SessionAttribute
 
equals(Object) - Method in class com.yuweix.assist4j.session.AttributeData
 
equals(Object) - Method in class com.yuweix.assist4j.session.CacheHttpSession
 

F

findValueByKey(HttpServletRequest, String) - Static method in class com.yuweix.assist4j.session.CookiesUtil
从Cookie中根据key取值

G

get(String) - Method in interface com.yuweix.assist4j.session.cache.SessionCache
 
getApplicationName() - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
getAttribute(String) - Method in class com.yuweix.assist4j.session.CacheHttpSession
获取属性值。
getAttribute(String) - Method in class com.yuweix.assist4j.session.SessionAttribute
 
getAttributeBySessionId(String, String) - Static method in class com.yuweix.assist4j.session.SessionUtil
查询指定session中指定属性的值
getAttributeNames() - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
getAttributeNames() - Method in class com.yuweix.assist4j.session.SessionAttribute
 
getCache() - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
getCreateTime() - Method in class com.yuweix.assist4j.session.SessionAttribute
 
getCreateTimeBySessionId(String) - Static method in class com.yuweix.assist4j.session.SessionUtil
根据指定sessionId获得登录时间 eg.
getCreationTime() - Method in class com.yuweix.assist4j.session.CacheHttpSession
获取此Session的创建时间。
getExclusivePattern() - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
getId() - Method in class com.yuweix.assist4j.session.CacheHttpSession
此Session的ID值。 这里返回存入cache的key值
getInstance() - Static method in class com.yuweix.assist4j.session.conf.SessionConf
 
getKey() - Method in class com.yuweix.assist4j.session.AttributeData
 
getLastAccessedTime() - Method in class com.yuweix.assist4j.session.CacheHttpSession
获取最后访问时间。
getLastAccessTime() - Method in class com.yuweix.assist4j.session.SessionAttribute
 
getMaxInactiveInterval() - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
getMaxInactiveInterval() - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
getRepeatKey() - Method in class com.yuweix.assist4j.session.SessionAttribute
 
getRepeatValue() - Method in class com.yuweix.assist4j.session.SessionAttribute
 
getServletContext() - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
getSession() - Method in class com.yuweix.assist4j.session.CacheHttpServletRequest
获取会话实例,如果不存在则创建。
getSession(boolean) - Method in class com.yuweix.assist4j.session.CacheHttpServletRequest
获取会话实例,调用者指定如果不存在时是否创建一个新的。
getSessionAttribute() - Method in class com.yuweix.assist4j.session.CacheHttpSession
获取当前的属性键值对。
getSessionContext() - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
getSessionIdByRepeatKey(T) - Static method in class com.yuweix.assist4j.session.SessionUtil
 
getValue() - Method in class com.yuweix.assist4j.session.AttributeData
 
getValue(String) - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
getValue() - Method in class com.yuweix.assist4j.session.RepeatKey
 
getValueClassName() - Method in class com.yuweix.assist4j.session.AttributeData
 
getValueNames() - Method in class com.yuweix.assist4j.session.CacheHttpSession
 

H

hashCode() - Method in class com.yuweix.assist4j.session.AttributeData
 
hashCode() - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
HeaderSessionFilter - Class in com.yuweix.assist4j.session.filter
从header中取出某个值作为sessionId
HeaderSessionFilter(SessionCache) - Constructor for class com.yuweix.assist4j.session.filter.HeaderSessionFilter
 
HeaderSessionFilter() - Constructor for class com.yuweix.assist4j.session.filter.HeaderSessionFilter
 

I

init(FilterConfig) - Method in class com.yuweix.assist4j.session.filter.SessionFilter
 
invalidate() - Method in class com.yuweix.assist4j.session.CacheHttpSession
Session过期。
invalidate(HttpServletRequest, HttpServletResponse) - Static method in class com.yuweix.assist4j.session.CookiesUtil
销毁Cookie
isEmpty() - Method in class com.yuweix.assist4j.session.SessionAttribute
 
isInvalid() - Method in class com.yuweix.assist4j.session.CacheHttpSession
判断是否已经超过了最大活动时间。
isNew() - Method in class com.yuweix.assist4j.session.CacheHttpSession
判断此Session是否为新的。
isNewBuild() - Method in class com.yuweix.assist4j.session.SessionAttribute
 

M

matches(HttpServletRequest) - Method in class com.yuweix.assist4j.session.conf.PathPattern
 
matches(String) - Method in class com.yuweix.assist4j.session.conf.PathPattern
 

P

PathPattern - Class in com.yuweix.assist4j.session.conf
 
PathPattern(String...) - Constructor for class com.yuweix.assist4j.session.conf.PathPattern
 
put(String, String, long) - Method in interface com.yuweix.assist4j.session.cache.SessionCache
timeout 有效期(单位:秒)。
putAttribute(String, Object) - Method in class com.yuweix.assist4j.session.SessionAttribute
 
putValue(String, Object) - Method in class com.yuweix.assist4j.session.CacheHttpSession
 

R

remove(String) - Method in interface com.yuweix.assist4j.session.cache.SessionCache
 
removeAttribute(String) - Method in class com.yuweix.assist4j.session.CacheHttpSession
移除已有的属性。
removeAttribute(String) - Method in class com.yuweix.assist4j.session.SessionAttribute
 
removeSessionFromCache() - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
removeValue(String) - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
RepeatKey - Class in com.yuweix.assist4j.session
避免同一账号多处登录。 可将判重条件用RepeatKey包装,然后存入session即可
RepeatKey(Object) - Constructor for class com.yuweix.assist4j.session.RepeatKey
 

S

SESSION_ID_KEY_CURRENT - Static variable in class com.yuweix.assist4j.session.SessionConstant
 
SESSION_ID_PRE - Static variable in class com.yuweix.assist4j.session.SessionConstant
 
SessionAttribute - Class in com.yuweix.assist4j.session
Session的相关属性键值对储存Bean.
SessionAttribute() - Constructor for class com.yuweix.assist4j.session.SessionAttribute
 
SessionAttribute(Date) - Constructor for class com.yuweix.assist4j.session.SessionAttribute
 
SessionCache - Interface in com.yuweix.assist4j.session.cache
 
SessionConf - Class in com.yuweix.assist4j.session.conf
 
SessionConstant - Class in com.yuweix.assist4j.session
 
SessionConstant() - Constructor for class com.yuweix.assist4j.session.SessionConstant
 
SessionFilter - Class in com.yuweix.assist4j.session.filter
 
SessionFilter(SessionCache) - Constructor for class com.yuweix.assist4j.session.filter.SessionFilter
 
SessionFilter() - Constructor for class com.yuweix.assist4j.session.filter.SessionFilter
 
SessionUtil - Class in com.yuweix.assist4j.session
 
SessionUtil() - Constructor for class com.yuweix.assist4j.session.SessionUtil
 
setApplicationName(String) - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
setApplicationName(String) - Method in class com.yuweix.assist4j.session.filter.SessionFilter
 
setAttribute(String, Object) - Method in class com.yuweix.assist4j.session.CacheHttpSession
更新属性。
setCache(SessionCache) - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
setCache(SessionCache) - Method in class com.yuweix.assist4j.session.filter.SessionFilter
 
setCreateTime(Date) - Method in class com.yuweix.assist4j.session.SessionAttribute
 
setExclusivePattern(String[]) - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
setKey(String) - Method in class com.yuweix.assist4j.session.AttributeData
 
setKey(String) - Method in class com.yuweix.assist4j.session.filter.HeaderSessionFilter
 
setLastAccessTime(Date) - Method in class com.yuweix.assist4j.session.SessionAttribute
 
setMaxInactiveInterval(int) - Method in class com.yuweix.assist4j.session.CacheHttpSession
 
setMaxInactiveInterval(int) - Method in class com.yuweix.assist4j.session.conf.SessionConf
 
setMaxInactiveInterval(int) - Method in class com.yuweix.assist4j.session.filter.SessionFilter
设置session失效时间(分钟)
setNewBuild(boolean) - Method in class com.yuweix.assist4j.session.SessionAttribute
 
setRepeatKey(String) - Method in class com.yuweix.assist4j.session.SessionAttribute
 
setRepeatValue(Object) - Method in class com.yuweix.assist4j.session.SessionAttribute
 
setResponseHeader(boolean) - Method in class com.yuweix.assist4j.session.filter.HeaderSessionFilter
 
setValue(Object) - Method in class com.yuweix.assist4j.session.AttributeData
 
setValueClassName(String) - Method in class com.yuweix.assist4j.session.AttributeData
 
sync() - Method in class com.yuweix.assist4j.session.CacheHttpServletRequest
如果Session不为空,同步至缓存。
sync() - Method in class com.yuweix.assist4j.session.CacheHttpSession
更新当前Session至缓存。如果已经失效,从缓存中删除。
A C D E F G H I M P R S 
Skip navigation links

Copyright © 2020. All rights reserved.