org.apache.commons.el

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.
Version:
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $
Author:
Nathan Abramson - Art Technology Group

Field Summary

(package private) Map
mApplication
(package private) PageContext
mContext
(package private) Map
mCookie
(package private) Map
mHeader
(package private) Map
mHeaders
(package private) Map
mInitParam
(package private) Map
mPage
(package private) Map
mParam
(package private) Map
mParams
(package private) Map
mRequest
(package private) Map
mSession
(package private) static String
sAttributeName

Constructor Summary

ImplicitObjects(PageContext pContext)
Constructor

Method Summary

static Map
createApplicationScopeMap(PageContext pContext)
Creates the Map that "wraps" application-scoped attributes
static Map
createCookieMap(PageContext pContext)
Creates the Map that maps cookie name to the first matching Cookie in request.getCookies().
static Map
createHeaderMap(PageContext pContext)
Creates the Map that maps header name to single header value.
static Map
createHeadersMap(PageContext pContext)
Creates the Map that maps header name to an array of header values.
static Map
createInitParamMap(PageContext pContext)
Creates the Map that maps init parameter name to single init parameter value.
static Map
createPageScopeMap(PageContext pContext)
Creates the Map that "wraps" page-scoped attributes
static Map
createParamMap(PageContext pContext)
Creates the Map that maps parameter name to single parameter value.
static Map
createParamsMap(PageContext pContext)
Creates the Map that maps parameter name to an array of parameter values.
static Map
createRequestScopeMap(PageContext pContext)
Creates the Map that "wraps" request-scoped attributes
static Map
createSessionScopeMap(PageContext pContext)
Creates the Map that "wraps" session-scoped attributes
Map
getApplicationScopeMap()
Returns the Map that "wraps" application-scoped attributes
Map
getCookieMap()
Returns the Map that maps cookie name to the first matching Cookie in request.getCookies().
Map
getHeaderMap()
Returns the Map that maps header name to a single header values.
Map
getHeadersMap()
Returns the Map that maps header name to an array of header values.
static ImplicitObjects
getImplicitObjects(PageContext pContext)
Finds the ImplicitObjects associated with the PageContext, creating it if it doesn't yet exist.
Map
getInitParamMap()
Returns the Map that maps init parameter name to a single init parameter values.
Map
getPageScopeMap()
Returns the Map that "wraps" page-scoped attributes
Map
getParamMap()
Returns the Map that maps parameter name to a single parameter values.
Map
getParamsMap()
Returns the Map that maps parameter name to an array of parameter values.
Map
getRequestScopeMap()
Returns the Map that "wraps" request-scoped attributes
Map
getSessionScopeMap()
Returns the Map that "wraps" session-scoped attributes

Field Details

mApplication

(package private)  Map mApplication

mContext

(package private)  PageContext mContext

mCookie

(package private)  Map mCookie

mHeader

(package private)  Map mHeader

mHeaders

(package private)  Map mHeaders

mInitParam

(package private)  Map mInitParam

mPage

(package private)  Map mPage

mParam

(package private)  Map mParam

mParams

(package private)  Map mParams

mRequest

(package private)  Map mRequest

mSession

(package private)  Map mSession

sAttributeName

(package private) static final String sAttributeName

Constructor Details

ImplicitObjects

public ImplicitObjects(PageContext pContext)
Constructor

Method Details

createApplicationScopeMap

public static Map createApplicationScopeMap(PageContext pContext)
Creates the Map that "wraps" application-scoped attributes

createCookieMap

public static Map createCookieMap(PageContext pContext)
Creates the Map that maps cookie name to the first matching Cookie in request.getCookies().

createHeaderMap

public static Map createHeaderMap(PageContext pContext)
Creates the Map that maps header name to single header value.

createHeadersMap

public static Map createHeadersMap(PageContext pContext)
Creates the Map that maps header name to an array of header values.

createInitParamMap

public static Map createInitParamMap(PageContext pContext)
Creates the Map that maps init parameter name to single init parameter value.

createPageScopeMap

public static Map createPageScopeMap(PageContext pContext)
Creates the Map that "wraps" page-scoped attributes

createParamMap

public static Map createParamMap(PageContext pContext)
Creates the Map that maps parameter name to single parameter value.

createParamsMap

public static Map createParamsMap(PageContext pContext)
Creates the Map that maps parameter name to an array of parameter values.

createRequestScopeMap

public static Map createRequestScopeMap(PageContext pContext)
Creates the Map that "wraps" request-scoped attributes

createSessionScopeMap

public static Map createSessionScopeMap(PageContext pContext)
Creates the Map that "wraps" session-scoped attributes

getApplicationScopeMap

public Map getApplicationScopeMap()
Returns the Map that "wraps" application-scoped attributes

getCookieMap

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

getHeaderMap

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

getHeadersMap

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

getImplicitObjects

public static ImplicitObjects getImplicitObjects(PageContext pContext)
Finds the ImplicitObjects associated with the PageContext, creating it if it doesn't yet exist.

getInitParamMap

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

getPageScopeMap

public Map getPageScopeMap()
Returns the Map that "wraps" page-scoped attributes

getParamMap

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

getParamsMap

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

getRequestScopeMap

public Map getRequestScopeMap()
Returns the Map that "wraps" request-scoped attributes

getSessionScopeMap

public Map getSessionScopeMap()
Returns the Map that "wraps" session-scoped attributes

Copyright (c) 2001-2002 - Apache Software Foundation