Package lumis.portal.el
Class AbstractRequestVariableResolver
- java.lang.Object
-
- lumis.portal.el.PortalVariableResolver
-
- lumis.portal.el.AbstractRequestVariableResolver
-
- All Implemented Interfaces:
VariableResolver
- Direct Known Subclasses:
HttpServletRequestVariableResolver
,ServiceContainerRequestVariableResolver
public abstract class AbstractRequestVariableResolver extends PortalVariableResolver
AbstractVariableResolver
that resolves general request variables. The implicit objects resolved by this class are:- param: Maps a request parameter name to a single value.
- paramValues: Maps a request parameter name to an array of values.
- header: Maps a request header name to a single value.
- headerValues: Maps a request header name to an array of values.
- cookie: Maps a cookie name to a single cookie.
- initParam: Maps a context initialization parameter name to a single value.
- requestScope: Maps request-scoped variable names to their values.
- sessionScope: Maps session-scoped variable names to their values.
Corresponds to the application scope of the
PortletSession
. - applicationScope: Maps application-scoped variable names to their values.
- businessContext: Maps business context property identifiers to their values.
- Since:
- 7.0.0
- Version:
- $Revision: 17685 $ $Date: 2015-08-17 19:29:13 -0300 (Mon, 17 Aug 2015) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractRequestVariableResolver.GetOnlyMap<K,V>
A map base class that is to be used only for callingAbstractRequestVariableResolver.GetOnlyMap.get(Object)
.-
Nested classes/interfaces inherited from class lumis.portal.el.PortalVariableResolver
PortalVariableResolver.EnvironmentBean
-
-
Constructor Summary
Constructors Constructor Description AbstractRequestVariableResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.Map<java.lang.String,java.lang.Object>
getApplicationScopeMap()
Returns the application scope map.protected abstract java.lang.Object
getAttribute(java.lang.String attributeName)
Returns the attribute with the given name.protected abstract java.lang.String
getBusinessContextProperty(java.lang.String key)
Returns the value with the given property id.protected abstract Cookie[]
getCookies()
Returns the cookies.protected abstract java.lang.String
getHeader(java.lang.String headerName)
Returns the header with the given name.protected abstract java.util.Enumeration
getHeaders(java.lang.String headerName)
Returns the headers with the given name.protected abstract java.util.Map<java.lang.String,java.lang.Object>
getInitParamMap()
Returns the init parameters.protected abstract java.lang.String
getParameter(java.lang.String parameterName)
Returns the parameter with the given name.protected abstract java.lang.Object
getParameterMap()
Returns the parameter map.protected abstract java.util.Map<java.lang.String,java.lang.Object>
getSessionScopeMap()
Returns the session scope map.java.lang.Object
resolveVariable(java.lang.String variableName)
-
-
-
Method Detail
-
getParameter
protected abstract java.lang.String getParameter(java.lang.String parameterName)
Returns the parameter with the given name.- Parameters:
parameterName
- the parameter name.- Returns:
- the parameter with the given name.
- Since:
- 7.0.0
-
getAttribute
protected abstract java.lang.Object getAttribute(java.lang.String attributeName)
Returns the attribute with the given name.- Parameters:
attributeName
- the attribute name.- Returns:
- the attribute with the given name.
- Since:
- 7.0.0
-
getCookies
protected abstract Cookie[] getCookies()
Returns the cookies.- Returns:
- the cookies.
- Since:
- 7.0.0
-
getHeaders
protected abstract java.util.Enumeration getHeaders(java.lang.String headerName)
Returns the headers with the given name.- Parameters:
headerName
- the header name.- Returns:
- the headers with the given name.
- Since:
- 7.0.0
-
getHeader
protected abstract java.lang.String getHeader(java.lang.String headerName)
Returns the header with the given name.- Parameters:
headerName
-- Returns:
- the header with the given name.
- Since:
- 7.0.0
-
getParameterMap
protected abstract java.lang.Object getParameterMap()
Returns the parameter map.- Returns:
- the parameter map.
- Since:
- 7.0.0
-
getSessionScopeMap
protected abstract java.util.Map<java.lang.String,java.lang.Object> getSessionScopeMap()
Returns the session scope map.- Returns:
- the session scope map.
- Since:
- 7.0.0
-
getInitParamMap
protected abstract java.util.Map<java.lang.String,java.lang.Object> getInitParamMap()
Returns the init parameters.- Returns:
- the init parameters.
- Since:
- 7.0.0
-
getApplicationScopeMap
protected abstract java.util.Map<java.lang.String,java.lang.Object> getApplicationScopeMap()
Returns the application scope map.- Returns:
- the application scope map.
- Since:
- 7.0.0
-
resolveVariable
public java.lang.Object resolveVariable(java.lang.String variableName) throws ELException
- Specified by:
resolveVariable
in interfaceVariableResolver
- Overrides:
resolveVariable
in classPortalVariableResolver
- Throws:
ELException
-
getBusinessContextProperty
protected abstract java.lang.String getBusinessContextProperty(java.lang.String key)
Returns the value with the given property id.- Parameters:
key
- the property id.- Returns:
- the value of the property with the given id.
- Since:
- 7.0.0
-
-