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 java.util.Map<java.lang.String,java.lang.Object>
getApplicationScopeMap()
Returns the application scope map.protected java.lang.Object
getAttribute(java.lang.String string)
Returns the attribute with the given name.protected java.lang.String
getBusinessContextProperty(java.lang.String key)
Returns the value with the given property id.protected Cookie[]
getCookies()
Returns the cookies.protected java.lang.String
getHeader(java.lang.String string)
Returns the header with the given name.protected java.util.Enumeration
getHeaders(java.lang.String string)
Returns the headers with the given name.protected java.util.Map<java.lang.String,java.lang.Object>
getInitParamMap()
Returns the init parameters.protected java.lang.String
getParameter(java.lang.String string)
Returns the parameter with the given name.protected java.lang.Object
getParameterMap()
Returns the parameter map.protected java.util.Map<java.lang.String,java.lang.Object>
getSessionScopeMap()
Returns the session scope map.java.lang.Object
resolveVariable(java.lang.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 java.lang.Object resolveVariable(java.lang.String variableName) throws ELException
- Specified by:
resolveVariable
in interfaceVariableResolver
- Overrides:
resolveVariable
in classAbstractRequestVariableResolver
- Throws:
ELException
-
getAttribute
protected java.lang.Object getAttribute(java.lang.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 java.lang.String getHeader(java.lang.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 java.lang.String getParameter(java.lang.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 java.lang.Object getParameterMap()
Description copied from class:AbstractRequestVariableResolver
Returns the parameter map.- Specified by:
getParameterMap
in classAbstractRequestVariableResolver
- Returns:
- the parameter map.
-
getApplicationScopeMap
protected java.util.Map<java.lang.String,java.lang.Object> getApplicationScopeMap()
Description copied from class:AbstractRequestVariableResolver
Returns the application scope map.- Specified by:
getApplicationScopeMap
in classAbstractRequestVariableResolver
- Returns:
- the application scope map.
-
getInitParamMap
protected java.util.Map<java.lang.String,java.lang.Object> getInitParamMap()
Description copied from class:AbstractRequestVariableResolver
Returns the init parameters.- Specified by:
getInitParamMap
in classAbstractRequestVariableResolver
- Returns:
- the init parameters.
-
getSessionScopeMap
protected java.util.Map<java.lang.String,java.lang.Object> getSessionScopeMap()
Description copied from class:AbstractRequestVariableResolver
Returns the session scope map.- Specified by:
getSessionScopeMap
in classAbstractRequestVariableResolver
- Returns:
- the session scope map.
-
getHeaders
protected java.util.Enumeration getHeaders(java.lang.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 java.lang.String getBusinessContextProperty(java.lang.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.
-
-