Package org.apache.commons.jxpath.servlet

# Class ServletRequestAndContext

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

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ServletRequestAndContext(ServletRequest request, ServletContext context)`
  Constructs a new ServletRequestAndContext.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ServletRequest`
  `getServletRequest()`
  Gets the request.
  `HttpSession`
  `getSession()`
  Gets the session.

  ### Methods inherited from class org.apache.commons.jxpath.servlet.HttpSessionAndServletContext

  `getServletContext`

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

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

- ## Constructor Details

  - ### ServletRequestAndContext

    public ServletRequestAndContext(ServletRequest request, ServletContext context)
    Constructs a new ServletRequestAndContext.
    Parameters:
      `request` - ServletRequest
      `context` - ServletContext

- ## Method Details

  - ### getServletRequest

    public ServletRequest getServletRequest()
    Gets the request.
    Returns:
      ServletRequest

  - ### getSession

    public HttpSession getSession()
    Description copied from class: `HttpSessionAndServletContext`
    Gets the session.
    Overrides:
      `getSession` in class `HttpSessionAndServletContext`
    Returns:
      HttpSession