public class SessionHttpServletRequestWrapper extends javax.servlet.http.HttpServletRequestWrapper implements SessionBuilder
Title: SessionHttpServletRequestWrapper.java
Description:
bboss workgroup
Copyright (c) 2008
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
appkey |
protected boolean |
requestedSessionIdFromURL |
protected javax.servlet.http.HttpServletResponse |
response |
protected javax.servlet.ServletContext |
servletContext |
protected HttpSessionImpl |
session |
protected SessionID |
sessionid |
protected boolean |
sessionidcookiewrited |
protected java.lang.String |
signParameterSessionID |
protected boolean |
usewebsession |
| Constructor and Description |
|---|
SessionHttpServletRequestWrapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.http.HttpSession |
_getSession(java.lang.String sessionid) |
HttpSessionImpl |
buildHttpSessionImpl(Session session) |
protected void |
createSession(SessionID sessionid) |
java.lang.String |
getRequestedSessionId() |
protected java.lang.String |
getRequestUrl() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.http.HttpSession |
getSession(boolean create) |
protected void |
initSessionIDFromCookie(java.lang.String cookieName,
javax.servlet.http.HttpServletRequest request) |
protected void |
initSessionIDFromParameter(java.lang.String sessionid,
java.lang.String cookieName,
javax.servlet.http.HttpServletRequest request) |
void |
invalidateCallback() |
boolean |
isRequestedSessionIdFromCookie() |
boolean |
isRequestedSessionIdFromUrl() |
boolean |
isRequestedSessionIdFromURL() |
boolean |
isRequestedSessionIdValid() |
protected SessionID |
randomToken() |
void |
removeSession(java.lang.String sessionid)
清除session数据
|
java.lang.String |
signParameterSessionID(SessionManager sessionManager,
boolean createSessionIfNotExist) |
void |
submit() |
void |
touch() |
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestURI, getRequestURL, getServletPath, getUserPrincipal, isUserInRole, login, logoutgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, 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, 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, startAsyncprotected SessionID sessionid
protected HttpSessionImpl session
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.ServletContext servletContext
protected java.lang.String appkey
protected boolean usewebsession
protected boolean sessionidcookiewrited
protected boolean requestedSessionIdFromURL
protected java.lang.String signParameterSessionID
public SessionHttpServletRequestWrapper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
protected void initSessionIDFromParameter(java.lang.String sessionid,
java.lang.String cookieName,
javax.servlet.http.HttpServletRequest request)
protected void initSessionIDFromCookie(java.lang.String cookieName,
javax.servlet.http.HttpServletRequest request)
public java.lang.String signParameterSessionID(SessionManager sessionManager, boolean createSessionIfNotExist)
public javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class javax.servlet.http.HttpServletRequestWrapperpublic void removeSession(java.lang.String sessionid)
sessionid - protected java.lang.String getRequestUrl()
protected void createSession(SessionID sessionid)
protected SessionID randomToken()
public javax.servlet.http.HttpSession getSession(boolean create)
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class javax.servlet.http.HttpServletRequestWrapperpublic HttpSessionImpl buildHttpSessionImpl(Session session)
buildHttpSessionImpl in interface SessionBuilderprotected javax.servlet.http.HttpSession _getSession(java.lang.String sessionid)
public void touch()
public java.lang.String getRequestedSessionId()
getRequestedSessionId in interface javax.servlet.http.HttpServletRequestgetRequestedSessionId in class javax.servlet.http.HttpServletRequestWrapperpublic boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequestisRequestedSessionIdFromCookie in class javax.servlet.http.HttpServletRequestWrapperpublic boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequestisRequestedSessionIdFromURL in class javax.servlet.http.HttpServletRequestWrapperpublic boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequestisRequestedSessionIdFromUrl in class javax.servlet.http.HttpServletRequestWrapperpublic boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequestisRequestedSessionIdValid in class javax.servlet.http.HttpServletRequestWrapperpublic void invalidateCallback()
invalidateCallback in interface InvalidateCallbackpublic void submit()