Class WebExpressionContext

    • Constructor Detail

      • WebExpressionContext

        public WebExpressionContext​(IEngineConfiguration configuration,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    javax.servlet.ServletContext servletContext)
      • WebExpressionContext

        public WebExpressionContext​(IEngineConfiguration configuration,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    javax.servlet.ServletContext servletContext,
                                    Locale locale)
      • WebExpressionContext

        public WebExpressionContext​(IEngineConfiguration configuration,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    javax.servlet.ServletContext servletContext,
                                    Locale locale,
                                    Map<String,​Object> variables)
    • Method Detail

      • getRequest

        public javax.servlet.http.HttpServletRequest getRequest()
        Description copied from interface: IWebContext

        Returns the HttpServletRequest object associated with the template execution.

        Specified by:
        getRequest in interface IWebContext
        Returns:
        the request object.
      • getSession

        public javax.servlet.http.HttpSession getSession()
        Description copied from interface: IWebContext

        Returns the HttpSession object associated with the template execution, or null if there is no session.

        Specified by:
        getSession in interface IWebContext
        Returns:
        the session object. Might be null if no session has been created.
      • getResponse

        public javax.servlet.http.HttpServletResponse getResponse()
        Description copied from interface: IWebContext

        Returns the HttpServletResponse object associated with the template execution.

        Specified by:
        getResponse in interface IWebContext
        Returns:
        the response object.
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Description copied from interface: IWebContext

        Returns the ServletContext object associated with the template execution.

        Specified by:
        getServletContext in interface IWebContext
        Returns:
        the servlet context object.