Class ImplicitObjectELResolver.ImplicitObjects

  • Enclosing class:
    ImplicitObjectELResolver

    private static class ImplicitObjectELResolver.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<java.lang.String,​java.lang.Object> mApplication  
      (package private) PageContext mContext  
      (package private) java.util.Map<java.lang.String,​javax.servlet.http.Cookie> mCookie  
      (package private) java.util.Map<java.lang.String,​java.lang.String> mHeader  
      (package private) java.util.Map<java.lang.String,​java.lang.String[]> mHeaders  
      (package private) java.util.Map<java.lang.String,​java.lang.String> mInitParam  
      (package private) java.util.Map<java.lang.String,​java.lang.Object> mPage  
      (package private) java.util.Map<java.lang.String,​java.lang.String> mParam  
      (package private) java.util.Map<java.lang.String,​java.lang.String[]> mParams  
      (package private) java.util.Map<java.lang.String,​java.lang.Object> mRequest  
      (package private) java.util.Map<java.lang.String,​java.lang.Object> mSession  
      (package private) static java.lang.String sAttributeName  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> createApplicationScopeMap​(PageContext pContext)
      Creates the Map that "wraps" application-scoped attributes
      static java.util.Map<java.lang.String,​javax.servlet.http.Cookie> createCookieMap​(PageContext pContext)
      Creates the Map that maps cookie name to the first matching Cookie in request.getCookies().
      static java.util.Map<java.lang.String,​java.lang.String> createHeaderMap​(PageContext pContext)
      Creates the Map that maps header name to single header value.
      static java.util.Map<java.lang.String,​java.lang.String[]> createHeadersMap​(PageContext pContext)
      Creates the Map that maps header name to an array of header values.
      static java.util.Map<java.lang.String,​java.lang.String> createInitParamMap​(PageContext pContext)
      Creates the Map that maps init parameter name to single init parameter value.
      static java.util.Map<java.lang.String,​java.lang.Object> createPageScopeMap​(PageContext pContext)
      Creates the Map that "wraps" page-scoped attributes
      static java.util.Map<java.lang.String,​java.lang.String> createParamMap​(PageContext pContext)
      Creates the Map that maps parameter name to single parameter value.
      static java.util.Map<java.lang.String,​java.lang.String[]> createParamsMap​(PageContext pContext)
      Creates the Map that maps parameter name to an array of parameter values.
      static java.util.Map<java.lang.String,​java.lang.Object> createRequestScopeMap​(PageContext pContext)
      Creates the Map that "wraps" request-scoped attributes
      static java.util.Map<java.lang.String,​java.lang.Object> createSessionScopeMap​(PageContext pContext)
      Creates the Map that "wraps" session-scoped attributes
      java.util.Map<java.lang.String,​java.lang.Object> getApplicationScopeMap()  
      java.util.Map<java.lang.String,​javax.servlet.http.Cookie> getCookieMap()  
      java.util.Map<java.lang.String,​java.lang.String> getHeaderMap()  
      java.util.Map<java.lang.String,​java.lang.String[]> getHeadersMap()  
      static ImplicitObjectELResolver.ImplicitObjects getImplicitObjects​(PageContext pContext)  
      java.util.Map<java.lang.String,​java.lang.String> getInitParamMap()  
      java.util.Map<java.lang.String,​java.lang.Object> getPageScopeMap()  
      java.util.Map<java.lang.String,​java.lang.String> getParamMap()  
      java.util.Map<java.lang.String,​java.lang.String[]> getParamsMap()  
      java.util.Map<java.lang.String,​java.lang.Object> getRequestScopeMap()  
      java.util.Map<java.lang.String,​java.lang.Object> getSessionScopeMap()  
      • Methods inherited from class java.lang.Object

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

      • mPage

        java.util.Map<java.lang.String,​java.lang.Object> mPage
      • mRequest

        java.util.Map<java.lang.String,​java.lang.Object> mRequest
      • mSession

        java.util.Map<java.lang.String,​java.lang.Object> mSession
      • mApplication

        java.util.Map<java.lang.String,​java.lang.Object> mApplication
      • mParam

        java.util.Map<java.lang.String,​java.lang.String> mParam
      • mParams

        java.util.Map<java.lang.String,​java.lang.String[]> mParams
      • mHeader

        java.util.Map<java.lang.String,​java.lang.String> mHeader
      • mHeaders

        java.util.Map<java.lang.String,​java.lang.String[]> mHeaders
      • mInitParam

        java.util.Map<java.lang.String,​java.lang.String> mInitParam
      • mCookie

        java.util.Map<java.lang.String,​javax.servlet.http.Cookie> mCookie
    • Constructor Detail

      • ImplicitObjects

        public ImplicitObjects​(PageContext pContext)
        Constructor
        Parameters:
        pContext - The PageContext for which this instance is to be constructed
    • Method Detail

      • getImplicitObjects

        public static ImplicitObjectELResolver.ImplicitObjects getImplicitObjects​(PageContext pContext)
        Parameters:
        pContext - The PageContext for which the ImplicitObjects instance is required
        Returns:
        the ImplicitObjects associated with the PageContext, creating it if it doesn't yet exist.
      • getPageScopeMap

        public java.util.Map<java.lang.String,​java.lang.Object> getPageScopeMap()
        Returns:
        the Map that "wraps" page-scoped attributes
      • getRequestScopeMap

        public java.util.Map<java.lang.String,​java.lang.Object> getRequestScopeMap()
        Returns:
        the Map that "wraps" request-scoped attributes
      • getSessionScopeMap

        public java.util.Map<java.lang.String,​java.lang.Object> getSessionScopeMap()
        Returns:
        the Map that "wraps" session-scoped attributes
      • getApplicationScopeMap

        public java.util.Map<java.lang.String,​java.lang.Object> getApplicationScopeMap()
        Returns:
        the Map that "wraps" application-scoped attributes
      • getParamMap

        public java.util.Map<java.lang.String,​java.lang.String> getParamMap()
        Returns:
        the Map that maps parameter name to a single parameter values.
      • getParamsMap

        public java.util.Map<java.lang.String,​java.lang.String[]> getParamsMap()
        Returns:
        the Map that maps parameter name to an array of parameter values.
      • getHeaderMap

        public java.util.Map<java.lang.String,​java.lang.String> getHeaderMap()
        Returns:
        the Map that maps header name to a single header values.
      • getHeadersMap

        public java.util.Map<java.lang.String,​java.lang.String[]> getHeadersMap()
        Returns:
        the Map that maps header name to an array of header values.
      • getInitParamMap

        public java.util.Map<java.lang.String,​java.lang.String> getInitParamMap()
        Returns:
        the Map that maps init parameter name to a single init parameter values.
      • getCookieMap

        public java.util.Map<java.lang.String,​javax.servlet.http.Cookie> getCookieMap()
        Returns:
        the Map that maps cookie name to the first matching Cookie in request.getCookies().
      • createPageScopeMap

        public static java.util.Map<java.lang.String,​java.lang.Object> createPageScopeMap​(PageContext pContext)
        Creates the Map that "wraps" page-scoped attributes
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that "wraps" page-scoped attributes
      • createRequestScopeMap

        public static java.util.Map<java.lang.String,​java.lang.Object> createRequestScopeMap​(PageContext pContext)
        Creates the Map that "wraps" request-scoped attributes
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that "wraps" request-scoped attributes
      • createSessionScopeMap

        public static java.util.Map<java.lang.String,​java.lang.Object> createSessionScopeMap​(PageContext pContext)
        Creates the Map that "wraps" session-scoped attributes
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that "wraps" session-scoped attributes
      • createApplicationScopeMap

        public static java.util.Map<java.lang.String,​java.lang.Object> createApplicationScopeMap​(PageContext pContext)
        Creates the Map that "wraps" application-scoped attributes
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that "wraps" application-scoped attributes
      • createParamMap

        public static java.util.Map<java.lang.String,​java.lang.String> createParamMap​(PageContext pContext)
        Creates the Map that maps parameter name to single parameter value.
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that maps parameter name to single parameter value
      • createParamsMap

        public static java.util.Map<java.lang.String,​java.lang.String[]> createParamsMap​(PageContext pContext)
        Creates the Map that maps parameter name to an array of parameter values.
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that maps parameter name to an array of parameter values.
      • createHeaderMap

        public static java.util.Map<java.lang.String,​java.lang.String> createHeaderMap​(PageContext pContext)
        Creates the Map that maps header name to single header value.
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that maps header name to single header value
      • createHeadersMap

        public static java.util.Map<java.lang.String,​java.lang.String[]> createHeadersMap​(PageContext pContext)
        Creates the Map that maps header name to an array of header values.
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that maps header name to an array of header values
      • createInitParamMap

        public static java.util.Map<java.lang.String,​java.lang.String> createInitParamMap​(PageContext pContext)
        Creates the Map that maps init parameter name to single init parameter value.
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that maps init parameter name to single init parameter value.
      • createCookieMap

        public static java.util.Map<java.lang.String,​javax.servlet.http.Cookie> createCookieMap​(PageContext pContext)
        Creates the Map that maps cookie name to the first matching Cookie in request.getCookies().
        Parameters:
        pContext - The PageContext for which the Map should be produced
        Returns:
        the Map that maps cookie name to the first matching Cookie in request.getCookies().