public class StatelessRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
| Constructor and Description |
|---|
StatelessRequestWrapper(javax.servlet.http.HttpServletRequest request,
Configuration backends)
Create a new request wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.HttpSession |
getServerSession()
Returns real server session.
|
javax.servlet.http.HttpSession |
getSession()
javax.servlet.http.HttpServletRequestWrapper#getSession()
Returns a custom session object.
|
javax.servlet.http.HttpSession |
getSession(boolean create)
(non-Javadoc)
|
boolean |
isSessionWritten() |
void |
writeSession(javax.servlet.http.HttpServletRequest myrequest,
javax.servlet.http.HttpServletResponse myresponse)
Stores session in backends
|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRolegetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncodingpublic StatelessRequestWrapper(javax.servlet.http.HttpServletRequest request,
Configuration backends)
request - backends - public boolean isSessionWritten()
public javax.servlet.http.HttpSession getServerSession()
This method should only be used for pass-through implementations or to get Servlet context. Implementation should not store data in this session as Statelessfilter is intended to make application independant of the container session.
public javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class javax.servlet.http.HttpServletRequestWrapperpublic javax.servlet.http.HttpSession getSession(boolean create)
getSession in interface javax.servlet.http.HttpServletRequestgetSession in class javax.servlet.http.HttpServletRequestWrapperHttpServletRequestWrapper.getSession(boolean)public void writeSession(javax.servlet.http.HttpServletRequest myrequest,
javax.servlet.http.HttpServletResponse myresponse)
throws IOException
myrequest - myresponse - IOExceptionCopyright © 2009–2013. All rights reserved.