/** * * Returns the Map that "wraps" request-scoped attributes **/ public Map getRequestScopeMap () { if (mRequest == null) { mRequest = createRequestScopeMap (mContext); } return mRequest; }
/** * * Returns the Map that "wraps" application-scoped attributes **/ public Map getApplicationScopeMap () { if (mApplication == null) { mApplication = createApplicationScopeMap (mContext); } return mApplication; }
/** * * Returns the Map that maps parameter name to a single parameter * values. **/ public Map getParamMap () { if (mParam == null) { mParam = createParamMap (mContext); } return mParam; }
@SuppressWarnings("rawtypes") protected Object doEvaluate(String expression, Class expectedType, javax.servlet.jsp.el.FunctionMapper functionMapper) throws javax.servlet.jsp.el.ELException { try { return ExpressionEvaluatorManager.evaluate("JSP EL expression", expression, expectedType, this.pageContext); } catch (JspException ex) { throw new javax.servlet.jsp.el.ELException("Parsing of JSP EL expression \"" + expression + "\" failed", ex); } }
@Nullable private Object resolveImplicitVariable(String name) throws AccessException { if (this.variableResolver == null) { return null; } try { return this.variableResolver.resolveVariable(name); } catch (Exception ex) { throw new AccessException( "Unexpected exception occurred accessing '" + name + "' as an implicit variable", ex); } } }
/** * * Converts the MapSource to a Map. If the map is not mutable, this * is cached **/ public Map getAsMap () { if (mMap != null) { return mMap; } else { Map m = convertToMap (); if (!isMutable ()) { mMap = m; } return m; } }
public Collection values () { return getAsMap ().values (); }
public Object get (Object pKey) { return getValue (pKey); }
/** * * Returns the Map that maps header name to an array of header * values. **/ public Map getHeadersMap () { if (mHeaders == null) { mHeaders = createHeadersMap (mContext); } return mHeaders; }
/** * * Returns the Map that maps parameter name to an array of parameter * values. **/ public Map getParamsMap () { if (mParams == null) { mParams = createParamsMap (mContext); } return mParams; }
/** * * Returns the Map that maps init parameter name to a single init * parameter values. **/ public Map getInitParamMap () { if (mInitParam == null) { mInitParam = createInitParamMap (mContext); } return mInitParam; }
/** * * Returns the Map that maps cookie name to the first matching * Cookie in request.getCookies(). **/ public Map getCookieMap () { if (mCookie == null) { mCookie = createCookieMap (mContext); } return mCookie; }
/** * * Returns the Map that maps header name to a single header * values. **/ public Map getHeaderMap () { if (mHeader == null) { mHeader = createHeaderMap (mContext); } return mHeader; }
/** * * Returns the Map that "wraps" page-scoped attributes **/ public Map getPageScopeMap () { if (mPage == null) { mPage = createPageScopeMap (mContext); } return mPage; }
/** * * Returns the Map that "wraps" session-scoped attributes **/ public Map getSessionScopeMap () { if (mSession == null) { mSession = createSessionScopeMap (mContext); } return mSession; }
public boolean isEmpty () { return !enumerateKeys ().hasMoreElements (); }
@SuppressWarnings("rawtypes") protected Object doEvaluate(String expression, Class expectedType, javax.servlet.jsp.el.FunctionMapper functionMapper) throws javax.servlet.jsp.el.ELException { try { return ExpressionEvaluatorManager.evaluate("JSP EL expression", expression, expectedType, this.pageContext); } catch (JspException ex) { throw new javax.servlet.jsp.el.ELException("Parsing of JSP EL expression \"" + expression + "\" failed", ex); } }
public Set keySet () { return getAsMap ().keySet (); }
public boolean containsKey (Object pKey) { return getValue (pKey) != null; }
public int size () { return getAsMap ().size (); }