Class HttpSessionAndServletContext
java.lang.Object
org.apache.commons.jxpath.servlet.HttpSessionAndServletContext
- Direct Known Subclasses:
ServletRequestAndContext
Just a structure to hold a ServletRequest and ServletContext together.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpSessionAndServletContext(javax.servlet.http.HttpSession session, javax.servlet.ServletContext context) Constructs a new HttpSessionAndServletContext. -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.ServletContextGets the ServletContext.javax.servlet.http.HttpSessionGets the session.
-
Field Details
-
session
private final javax.servlet.http.HttpSession session -
context
private final javax.servlet.ServletContext context
-
-
Constructor Details
-
HttpSessionAndServletContext
public HttpSessionAndServletContext(javax.servlet.http.HttpSession session, javax.servlet.ServletContext context) Constructs a new HttpSessionAndServletContext.- Parameters:
session- HttpSessioncontext- ServletContext
-
-
Method Details
-
getServletContext
public javax.servlet.ServletContext getServletContext()Gets the ServletContext.- Returns:
- ServletContext
-
getSession
public javax.servlet.http.HttpSession getSession()Gets the session.- Returns:
- HttpSession
-