Package org.apache.commons.jxpath.servlet

# Class HttpSessionAndServletContext

java.lang.Object
org.apache.commons.jxpath.servlet.HttpSessionAndServletContext

Direct Known Subclasses:
  `ServletRequestAndContext`

public class HttpSessionAndServletContext extends Object
Just a structure to hold a ServletRequest and ServletContext together.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HttpSessionAndServletContext(HttpSession session, ServletContext context)`
  Constructs a new HttpSessionAndServletContext.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ServletContext`
  `getServletContext()`
  Gets the ServletContext.
  `HttpSession`
  `getSession()`
  Gets the session.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### HttpSessionAndServletContext

    public HttpSessionAndServletContext(HttpSession session, ServletContext context)
    Constructs a new HttpSessionAndServletContext.
    Parameters:
      `session` - HttpSession
      `context` - ServletContext

- ## Method Details

  - ### getServletContext

    public ServletContext getServletContext()
    Gets the ServletContext.
    Returns:
      ServletContext

  - ### getSession

    public HttpSession getSession()
    Gets the session.
    Returns:
      HttpSession