Class HttpSessionAndServletContext

  • Direct Known Subclasses:
    ServletRequestAndContext

    public class HttpSessionAndServletContext
    extends java.lang.Object
    Just a structure to hold a ServletRequest and ServletContext together.
    Version:
    $Revision: 604304 $ $Date: 2007-12-14 15:31:19 -0600 (Fri, 14 Dec 2007) $
    Author:
    Dmitri Plotnikov
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.servlet.ServletContext getServletContext()
      Get the ServletContext.
      javax.servlet.http.HttpSession getSession()
      Get the session.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • session

        private javax.servlet.http.HttpSession session
      • context

        private javax.servlet.ServletContext context
    • Constructor Detail

      • HttpSessionAndServletContext

        public HttpSessionAndServletContext​(javax.servlet.http.HttpSession session,
                                            javax.servlet.ServletContext context)
        Create a new HttpSessionAndServletContext.
        Parameters:
        session - HttpSession
        context - ServletContext
    • Method Detail

      • getSession

        public javax.servlet.http.HttpSession getSession()
        Get the session.
        Returns:
        HttpSession
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Get the ServletContext.
        Returns:
        ServletContext