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, setSessionIdclear, containsKey, containsValue, entrySet, get, getTypedValue, isEmpty, keySet, nullSafePut, put, putAll, remove, size, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHost, getSessionId, setHost, setSessionIdpublic void setServletRequest(javax.servlet.ServletRequest request)
WebSessionContextServletRequest received by the servlet container triggering the creation of the
Session instance.setServletRequest in interface WebSessionContextrequest - the ServletRequest received by the servlet container triggering the creation of the
Session instance.public javax.servlet.ServletRequest getServletRequest()
WebSessionContextServletRequest received by the servlet container triggering the creation of the
Session instance.getServletRequest in interface WebSessionContextgetServletRequest in interface RequestPairSourceServletRequest received by the servlet container triggering the creation of the
Session instance.public void setServletResponse(javax.servlet.ServletResponse response)
WebSessionContextServletResponse corresponding to the associated servletRequest.setServletResponse in interface WebSessionContextresponse - The paired ServletResponse corresponding to the associated
servletRequest.public javax.servlet.ServletResponse getServletResponse()
WebSessionContextServletResponse corresponding to the associated servletRequest.getServletResponse in interface WebSessionContextgetServletResponse in interface RequestPairSourceServletResponse corresponding to the associated
servletRequest.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.