public class ServletRequestAndContext extends HttpSessionAndServletContext
ServletRequest
and ServletContext
together.Modifier and Type | Field and Description |
---|---|
private javax.servlet.ServletRequest |
request |
Constructor and Description |
---|
ServletRequestAndContext(javax.servlet.ServletRequest request,
javax.servlet.ServletContext context)
Create a new ServletRequestAndContext.
|
Modifier and Type | Method and Description |
---|---|
javax.servlet.ServletRequest |
getServletRequest()
Get the request.
|
javax.servlet.http.HttpSession |
getSession()
Get the session.
|
getServletContext
public ServletRequestAndContext(javax.servlet.ServletRequest request, javax.servlet.ServletContext context)
request
- ServletRequestcontext
- ServletContextpublic javax.servlet.http.HttpSession getSession()
HttpSessionAndServletContext
getSession
in class HttpSessionAndServletContext
public javax.servlet.ServletRequest getServletRequest()