public class DefaultWebSessionContext extends DefaultSessionContext implements WebSessionContext
WebSessionContext
interface which provides getters and setters that
wrap interaction with the underlying backing context map.Constructor and Description |
---|
DefaultWebSessionContext() |
DefaultWebSessionContext(Map<String,Object> map) |
Modifier and Type | Method and Description |
---|---|
javax.servlet.ServletRequest |
getServletRequest()
Returns the
ServletRequest received by the servlet container triggering the creation of the
Session instance. |
javax.servlet.ServletResponse |
getServletResponse()
The paired
ServletResponse corresponding to the associated servletRequest . |
void |
setServletRequest(javax.servlet.ServletRequest request)
Sets the
ServletRequest received by the servlet container triggering the creation of the
Session instance. |
void |
setServletResponse(javax.servlet.ServletResponse response)
Sets the paired
ServletResponse corresponding to the associated servletRequest . |
getHost, getSessionId, setHost, setSessionId
clear, containsKey, containsValue, entrySet, get, getTypedValue, isEmpty, keySet, nullSafePut, put, putAll, remove, size, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHost, getSessionId, setHost, setSessionId
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public DefaultWebSessionContext()
public DefaultWebSessionContext(Map<String,Object> map)
public void setServletRequest(javax.servlet.ServletRequest request)
WebSessionContext
ServletRequest
received by the servlet container triggering the creation of the
Session
instance.setServletRequest
in interface WebSessionContext
request
- the ServletRequest
received by the servlet container triggering the creation of the
Session
instance.public javax.servlet.ServletRequest getServletRequest()
WebSessionContext
ServletRequest
received by the servlet container triggering the creation of the
Session
instance.getServletRequest
in interface WebSessionContext
getServletRequest
in interface RequestPairSource
ServletRequest
received by the servlet container triggering the creation of the
Session
instance.public void setServletResponse(javax.servlet.ServletResponse response)
WebSessionContext
ServletResponse
corresponding to the associated servletRequest
.setServletResponse
in interface WebSessionContext
response
- The paired ServletResponse
corresponding to the associated
servletRequest
.public javax.servlet.ServletResponse getServletResponse()
WebSessionContext
ServletResponse
corresponding to the associated servletRequest
.getServletResponse
in interface WebSessionContext
getServletResponse
in interface RequestPairSource
ServletResponse
corresponding to the associated
servletRequest
.Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.