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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final javax.servlet.ServletContext
     
    private final javax.servlet.http.HttpSession
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    HttpSessionAndServletContext(javax.servlet.http.HttpSession session, javax.servlet.ServletContext context)
    Constructs a new HttpSessionAndServletContext.
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.servlet.ServletContext
    Gets the ServletContext.
    javax.servlet.http.HttpSession
    Gets the session.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - HttpSession
      context - 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