Class ImplicitObjectELResolver.ImplicitObjects

java.lang.Object
javax.servlet.jsp.el.ImplicitObjectELResolver.ImplicitObjects
Enclosing class:
ImplicitObjectELResolver

private static class ImplicitObjectELResolver.ImplicitObjects extends 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 Details

  • Constructor Details

    • ImplicitObjects

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

    • 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 Map<String,Object> getPageScopeMap()
      Returns:
      the Map that "wraps" page-scoped attributes
    • getRequestScopeMap

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

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

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

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

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

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

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

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

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

      public static Map<String,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 Map<String,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 Map<String,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 Map<String,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 Map<String,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 Map<String,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 Map<String,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 Map<String,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 Map<String,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 Map<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().