Class DefaultWebSessionContext
java.lang.Object
org.apache.shiro.util.MapContext
org.apache.shiro.session.mgt.DefaultSessionContext
org.apache.shiro.web.session.mgt.DefaultWebSessionContext
- All Implemented Interfaces:
Serializable,Map<String,,Object> org.apache.shiro.session.mgt.SessionContext,WebSessionContext,RequestPairSource
public class DefaultWebSessionContext
extends org.apache.shiro.session.mgt.DefaultSessionContext
implements WebSessionContext
Default implementation of the
WebSessionContext interface which provides getters and setters that
wrap interaction with the underlying backing context map.- Since:
- 1.0
- See Also:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.ServletRequestReturns theServletRequestreceived by the servlet container triggering the creation of theSessioninstance.javax.servlet.ServletResponseThe pairedServletResponsecorresponding to the associatedservletRequest.voidsetServletRequest(javax.servlet.ServletRequest request) Sets theServletRequestreceived by the servlet container triggering the creation of theSessioninstance.voidsetServletResponse(javax.servlet.ServletResponse response) Sets the pairedServletResponsecorresponding to the associatedservletRequest.Methods inherited from class org.apache.shiro.session.mgt.DefaultSessionContext
getHost, getSessionId, setHost, setSessionIdMethods inherited from class org.apache.shiro.util.MapContext
clear, containsKey, containsValue, entrySet, get, getTypedValue, isEmpty, keySet, nullSafePut, put, putAll, remove, size, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface org.apache.shiro.session.mgt.SessionContext
getHost, getSessionId, setHost, setSessionId
-
Constructor Details
-
DefaultWebSessionContext
public DefaultWebSessionContext() -
DefaultWebSessionContext
-
-
Method Details
-
setServletRequest
Description copied from interface:WebSessionContextSets theServletRequestreceived by the servlet container triggering the creation of theSessioninstance.- Specified by:
setServletRequestin interfaceWebSessionContext- Parameters:
request- theServletRequestreceived by the servlet container triggering the creation of theSessioninstance.
-
getServletRequest
Description copied from interface:WebSessionContextReturns theServletRequestreceived by the servlet container triggering the creation of theSessioninstance.- Specified by:
getServletRequestin interfaceRequestPairSource- Specified by:
getServletRequestin interfaceWebSessionContext- Returns:
- the
ServletRequestreceived by the servlet container triggering the creation of theSessioninstance.
-
setServletResponse
Description copied from interface:WebSessionContextSets the pairedServletResponsecorresponding to the associatedservletRequest.- Specified by:
setServletResponsein interfaceWebSessionContext- Parameters:
response- The pairedServletResponsecorresponding to the associatedservletRequest.
-
getServletResponse
Description copied from interface:WebSessionContextThe pairedServletResponsecorresponding to the associatedservletRequest.- Specified by:
getServletResponsein interfaceRequestPairSource- Specified by:
getServletResponsein interfaceWebSessionContext- Returns:
- the paired
ServletResponsecorresponding to the associatedservletRequest.
-