public interface WebSessionContext extends SessionContext, RequestPairSource
WebSubjectContext is a SessionContext that additionally provides for type-safe
methods to set and retrieve a ServletRequest and ServletResponse, as the request/response pair will
often need to be referenced during construction of web-initiated Session instances.| 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, setSessionIdjavax.servlet.ServletRequest getServletRequest()
ServletRequest received by the servlet container triggering the creation of the
Session instance.getServletRequest in interface RequestPairSourceServletRequest received by the servlet container triggering the creation of the
Session instance.void setServletRequest(javax.servlet.ServletRequest request)
ServletRequest received by the servlet container triggering the creation of the
Session instance.request - the ServletRequest received by the servlet container triggering the creation of the
Session instance.javax.servlet.ServletResponse getServletResponse()
ServletResponse corresponding to the associated servletRequest.getServletResponse in interface RequestPairSourceServletResponse corresponding to the associated
servletRequest.void setServletResponse(javax.servlet.ServletResponse response)
ServletResponse corresponding to the associated servletRequest.response - The paired ServletResponse corresponding to the associated
servletRequest.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.