public class JbootServletRequestWrapper extends javax.servlet.http.HttpServletRequestWrapper
| 限定符和类型 | 字段和说明 |
|---|---|
private static String |
cacheName |
private static JbootSessionConfig |
config |
private static String |
cookieDomain |
private static int |
cookieMaxAge |
private static String |
cookieName |
private static String |
cookiePath |
private static JbootCache |
jbootCache |
private JbootHttpSession |
jbootSession |
private static int |
maxInactiveInterval |
private javax.servlet.http.HttpServletRequest |
originRequest |
private javax.servlet.http.HttpSession |
originSession |
private javax.servlet.http.HttpServletResponse |
response |
private static String |
useCacheName |
| 构造器和说明 |
|---|
JbootServletRequestWrapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
| 限定符和类型 | 方法和说明 |
|---|---|
private Map<String,Object> |
createSessionStore(String sessionId) |
private String |
getCookie(String name)
Get cookie value by cookie name.
|
private javax.servlet.http.Cookie |
getCookieObject(String name)
Get cookie object by cookie name.
|
javax.servlet.http.HttpServletRequest |
getOriginRequest() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.http.HttpSession |
getSession(boolean create) |
void |
refreshSession()
http请求结束时,更新session信息,包括:刷新session的存储时间,更新session数据,清空session数据等
|
private void |
setCookie(String name,
String value,
int maxAgeInSeconds) |
private void |
syncOriginSessionData(Map<String,Object> store)
同步上层 session 到 sessionStore
|
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncprivate static JbootSessionConfig config
private static int maxInactiveInterval
private static String cookieName
private static String cookiePath
private static String cookieDomain
private static int cookieMaxAge
private static String useCacheName
private static JbootCache jbootCache
private javax.servlet.http.HttpServletResponse response
private javax.servlet.http.HttpServletRequest originRequest
private javax.servlet.http.HttpSession originSession
private JbootHttpSession jbootSession
public JbootServletRequestWrapper(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public javax.servlet.http.HttpSession getSession()
getSession 在接口中 javax.servlet.http.HttpServletRequestgetSession 在类中 javax.servlet.http.HttpServletRequestWrapperpublic javax.servlet.http.HttpSession getSession(boolean create)
getSession 在接口中 javax.servlet.http.HttpServletRequestgetSession 在类中 javax.servlet.http.HttpServletRequestWrapperprivate Map<String,Object> createSessionStore(String sessionId)
private void syncOriginSessionData(Map<String,Object> store)
store - public void refreshSession()
private javax.servlet.http.Cookie getCookieObject(String name)
private void setCookie(String name, String value, int maxAgeInSeconds)
name - value - maxAgeInSeconds - public javax.servlet.http.HttpServletRequest getOriginRequest()
Copyright © 2024. All rights reserved.