Package lumis.portal.servicecontainer
Class ServiceContainerRequestVariableResolver
- java.lang.Object
-
- lumis.portal.el.PortalVariableResolver
-
- lumis.portal.el.AbstractRequestVariableResolver
-
- lumis.portal.servicecontainer.ServiceContainerRequestVariableResolver
-
- All Implemented Interfaces:
VariableResolver
public class ServiceContainerRequestVariableResolver extends AbstractRequestVariableResolver
Resolves variables based on aServiceContainerRequest
. The implicit objects resolved by this class are that ones resolved byPageWebResourceVariableResolver
and the following:- portletSessionScope: Maps portlet session-scoped variable names to their values. Corresponds to the
portlet scope of the
PortletSession
. - portletMode: Maps the portlet mode to a single valued lower case string.
- windowState: Maps the window state to a single valued lower case string.
- preference: Maps a
preferences
key to a single value. - preferenceValues: Maps a
preferences
key to an array of values.
- Since:
- 4.0.7
- Version:
- $Revision: 20200 $ $Date: 2017-06-01 14:07:03 -0300 (Thu, 01 Jun 2017) $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class lumis.portal.el.AbstractRequestVariableResolver
AbstractRequestVariableResolver.GetOnlyMap<K,V>
-
Nested classes/interfaces inherited from class lumis.portal.el.PortalVariableResolver
PortalVariableResolver.EnvironmentBean
-
-
Constructor Summary
Constructors Constructor Description ServiceContainerRequestVariableResolver(IServiceInterfaceRequest request)
Creates a new variable resolver based on the given request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
getApplicationScopeMap()
Returns the application scope map.protected Object
getAttribute(String string)
Returns the attribute with the given name.protected String
getBusinessContextProperty(String key)
Returns the value with the given property id.protected Cookie[]
getCookies()
Returns the cookies.protected String
getHeader(String string)
Returns the header with the given name.protected Enumeration
getHeaders(String string)
Returns the headers with the given name.protected Map<String,Object>
getInitParamMap()
Returns the init parameters.protected String
getParameter(String string)
Returns the parameter with the given name.protected Object
getParameterMap()
Returns the parameter map.protected Map<String,Object>
getSessionScopeMap()
Returns the session scope map.Object
resolveVariable(String variableName)
-
-
-
Constructor Detail
-
ServiceContainerRequestVariableResolver
public ServiceContainerRequestVariableResolver(IServiceInterfaceRequest request)
Creates a new variable resolver based on the given request.- Parameters:
request
- the request.- Since:
- 4.0.7
-
-
Method Detail
-
resolveVariable
public Object resolveVariable(String variableName) throws ELException
- Specified by:
resolveVariable
in interfaceVariableResolver
- Overrides:
resolveVariable
in classAbstractRequestVariableResolver
- Throws:
ELException
-
getAttribute
protected Object getAttribute(String string)
Description copied from class:AbstractRequestVariableResolver
Returns the attribute with the given name.- Specified by:
getAttribute
in classAbstractRequestVariableResolver
- Parameters:
string
- the attribute name.- Returns:
- the attribute with the given name.
-
getCookies
protected Cookie[] getCookies()
Description copied from class:AbstractRequestVariableResolver
Returns the cookies.- Specified by:
getCookies
in classAbstractRequestVariableResolver
- Returns:
- the cookies.
-
getHeader
protected String getHeader(String string)
Description copied from class:AbstractRequestVariableResolver
Returns the header with the given name.- Specified by:
getHeader
in classAbstractRequestVariableResolver
- Returns:
- the header with the given name.
-
getParameter
protected String getParameter(String string)
Description copied from class:AbstractRequestVariableResolver
Returns the parameter with the given name.- Specified by:
getParameter
in classAbstractRequestVariableResolver
- Parameters:
string
- the parameter name.- Returns:
- the parameter with the given name.
-
getParameterMap
protected Object getParameterMap()
Description copied from class:AbstractRequestVariableResolver
Returns the parameter map.- Specified by:
getParameterMap
in classAbstractRequestVariableResolver
- Returns:
- the parameter map.
-
getApplicationScopeMap
protected Map<String,Object> getApplicationScopeMap()
Description copied from class:AbstractRequestVariableResolver
Returns the application scope map.- Specified by:
getApplicationScopeMap
in classAbstractRequestVariableResolver
- Returns:
- the application scope map.
-
getInitParamMap
protected Map<String,Object> getInitParamMap()
Description copied from class:AbstractRequestVariableResolver
Returns the init parameters.- Specified by:
getInitParamMap
in classAbstractRequestVariableResolver
- Returns:
- the init parameters.
-
getSessionScopeMap
protected Map<String,Object> getSessionScopeMap()
Description copied from class:AbstractRequestVariableResolver
Returns the session scope map.- Specified by:
getSessionScopeMap
in classAbstractRequestVariableResolver
- Returns:
- the session scope map.
-
getHeaders
protected Enumeration getHeaders(String string)
Description copied from class:AbstractRequestVariableResolver
Returns the headers with the given name.- Specified by:
getHeaders
in classAbstractRequestVariableResolver
- Parameters:
string
- the header name.- Returns:
- the headers with the given name.
-
getBusinessContextProperty
protected String getBusinessContextProperty(String key)
Description copied from class:AbstractRequestVariableResolver
Returns the value with the given property id.- Specified by:
getBusinessContextProperty
in classAbstractRequestVariableResolver
- Parameters:
key
- the property id.- Returns:
- the value of the property with the given id.
-
-