Class ImplicitObjects


  • public class ImplicitObjects
    extends java.lang.Object

    This class is used to generate the implicit Map and List objects that wrap various elements of the PageContext. It also returns the correct implicit object for a given implicit object name.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Map mApplication  
      (package private) javax.servlet.jsp.PageContext mContext  
      (package private) java.util.Map mCookie  
      (package private) java.util.Map mHeader  
      (package private) java.util.Map mHeaders  
      (package private) java.util.Map mInitParam  
      (package private) java.util.Map mPage  
      (package private) java.util.Map mParam  
      (package private) java.util.Map mParams  
      (package private) java.util.Map mRequest  
      (package private) java.util.Map mSession  
      (package private) static java.lang.String sAttributeName  
    • Constructor Summary

      Constructors 
      Constructor Description
      ImplicitObjects​(javax.servlet.jsp.PageContext pContext)
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map createApplicationScopeMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that "wraps" application-scoped attributes
      static java.util.Map createCookieMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that maps cookie name to the first matching Cookie in request.getCookies().
      static java.util.Map createHeaderMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that maps header name to single header value.
      static java.util.Map createHeadersMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that maps header name to an array of header values.
      static java.util.Map createInitParamMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that maps init parameter name to single init parameter value.
      static java.util.Map createPageScopeMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that "wraps" page-scoped attributes
      static java.util.Map createParamMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that maps parameter name to single parameter value.
      static java.util.Map createParamsMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that maps parameter name to an array of parameter values.
      static java.util.Map createRequestScopeMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that "wraps" request-scoped attributes
      static java.util.Map createSessionScopeMap​(javax.servlet.jsp.PageContext pContext)
      Creates the Map that "wraps" session-scoped attributes
      java.util.Map getApplicationScopeMap()
      Returns the Map that "wraps" application-scoped attributes
      java.util.Map getCookieMap()
      Returns the Map that maps cookie name to the first matching Cookie in request.getCookies().
      java.util.Map getHeaderMap()
      Returns the Map that maps header name to a single header values.
      java.util.Map getHeadersMap()
      Returns the Map that maps header name to an array of header values.
      static ImplicitObjects getImplicitObjects​(javax.servlet.jsp.PageContext pContext)
      Finds the ImplicitObjects associated with the PageContext, creating it if it doesn't yet exist.
      java.util.Map getInitParamMap()
      Returns the Map that maps init parameter name to a single init parameter values.
      java.util.Map getPageScopeMap()
      Returns the Map that "wraps" page-scoped attributes
      java.util.Map getParamMap()
      Returns the Map that maps parameter name to a single parameter values.
      java.util.Map getParamsMap()
      Returns the Map that maps parameter name to an array of parameter values.
      java.util.Map getRequestScopeMap()
      Returns the Map that "wraps" request-scoped attributes
      java.util.Map getSessionScopeMap()
      Returns the Map that "wraps" session-scoped attributes
      • Methods inherited from class java.lang.Object

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

      • mContext

        javax.servlet.jsp.PageContext mContext
      • mPage

        java.util.Map mPage
      • mRequest

        java.util.Map mRequest
      • mSession

        java.util.Map mSession
      • mApplication

        java.util.Map mApplication
      • mParam

        java.util.Map mParam
      • mParams

        java.util.Map mParams
      • mHeader

        java.util.Map mHeader
      • mHeaders

        java.util.Map mHeaders
      • mInitParam

        java.util.Map mInitParam
      • mCookie

        java.util.Map mCookie
    • Constructor Detail

      • ImplicitObjects

        public ImplicitObjects​(javax.servlet.jsp.PageContext pContext)
        Constructor
    • Method Detail

      • getImplicitObjects

        public static ImplicitObjects getImplicitObjects​(javax.servlet.jsp.PageContext pContext)
        Finds the ImplicitObjects associated with the PageContext, creating it if it doesn't yet exist.
      • getPageScopeMap

        public java.util.Map getPageScopeMap()
        Returns the Map that "wraps" page-scoped attributes
      • getRequestScopeMap

        public java.util.Map getRequestScopeMap()
        Returns the Map that "wraps" request-scoped attributes
      • getSessionScopeMap

        public java.util.Map getSessionScopeMap()
        Returns the Map that "wraps" session-scoped attributes
      • getApplicationScopeMap

        public java.util.Map getApplicationScopeMap()
        Returns the Map that "wraps" application-scoped attributes
      • getParamMap

        public java.util.Map getParamMap()
        Returns the Map that maps parameter name to a single parameter values.
      • getParamsMap

        public java.util.Map getParamsMap()
        Returns the Map that maps parameter name to an array of parameter values.
      • getHeaderMap

        public java.util.Map getHeaderMap()
        Returns the Map that maps header name to a single header values.
      • getHeadersMap

        public java.util.Map getHeadersMap()
        Returns the Map that maps header name to an array of header values.
      • getInitParamMap

        public java.util.Map getInitParamMap()
        Returns the Map that maps init parameter name to a single init parameter values.
      • getCookieMap

        public java.util.Map getCookieMap()
        Returns the Map that maps cookie name to the first matching Cookie in request.getCookies().
      • createPageScopeMap

        public static java.util.Map createPageScopeMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that "wraps" page-scoped attributes
      • createRequestScopeMap

        public static java.util.Map createRequestScopeMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that "wraps" request-scoped attributes
      • createSessionScopeMap

        public static java.util.Map createSessionScopeMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that "wraps" session-scoped attributes
      • createApplicationScopeMap

        public static java.util.Map createApplicationScopeMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that "wraps" application-scoped attributes
      • createParamMap

        public static java.util.Map createParamMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that maps parameter name to single parameter value.
      • createParamsMap

        public static java.util.Map createParamsMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that maps parameter name to an array of parameter values.
      • createHeaderMap

        public static java.util.Map createHeaderMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that maps header name to single header value.
      • createHeadersMap

        public static java.util.Map createHeadersMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that maps header name to an array of header values.
      • createInitParamMap

        public static java.util.Map createInitParamMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that maps init parameter name to single init parameter value.
      • createCookieMap

        public static java.util.Map createCookieMap​(javax.servlet.jsp.PageContext pContext)
        Creates the Map that maps cookie name to the first matching Cookie in request.getCookies().