Interface ViewContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Object getAttribute​(String key)
      Searches for the named attribute in request, session (if valid), and application scope(s) in order and returns the value associated or null.
      javax.servlet.http.HttpServletRequest getRequest()
      Returns the instance of HttpServletRequest for this request.
      javax.servlet.http.HttpServletResponse getResponse()
      Returns the instance of HttpServletResponse for this request.
      javax.servlet.ServletContext getServletContext()
      Returns the instance of ServletContext for this request.
      org.apache.velocity.context.Context getVelocityContext()
      Returns a reference to the current Velocity context.
      org.apache.velocity.app.VelocityEngine getVelocityEngine()
      Returns the current VelocityEngine instance.
    • Field Detail

      • SERVLET_CONTEXT_KEY

        static final String SERVLET_CONTEXT_KEY
        Key used for the servlet context object in tool properties.
        See Also:
        Constant Field Values
      • DEFAULT_TOOLBOX_KEY

        static final String DEFAULT_TOOLBOX_KEY
        Default key used to store toolboxes in request/session/application attributes.
    • Method Detail

      • getRequest

        javax.servlet.http.HttpServletRequest getRequest()

        Returns the instance of HttpServletRequest for this request.

      • getResponse

        javax.servlet.http.HttpServletResponse getResponse()

        Returns the instance of HttpServletResponse for this request.

      • getServletContext

        javax.servlet.ServletContext getServletContext()

        Returns the instance of ServletContext for this request.

      • getAttribute

        Object getAttribute​(String key)

        Searches for the named attribute in request, session (if valid), and application scope(s) in order and returns the value associated or null.

        Since:
        VelocityTools 1.1
      • getVelocityContext

        org.apache.velocity.context.Context getVelocityContext()

        Returns a reference to the current Velocity context.

      • getVelocityEngine

        org.apache.velocity.app.VelocityEngine getVelocityEngine()

        Returns the current VelocityEngine instance.