Package lumis.portal.el
Class HttpServletRequestVariableResolver
- java.lang.Object
-
- lumis.portal.el.PortalVariableResolver
-
- lumis.portal.el.AbstractRequestVariableResolver
-
- lumis.portal.el.HttpServletRequestVariableResolver
-
- All Implemented Interfaces:
javax.servlet.jsp.el.VariableResolver
public class HttpServletRequestVariableResolver extends AbstractRequestVariableResolver
Resolves variables based on aHttpServletRequest
. 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:
- 5.6.0
- Version:
- $Revision$ $Date$
-
-
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 HttpServletRequestVariableResolver(javax.servlet.http.HttpServletRequest 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 javax.servlet.http.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 javax.servlet.http.HttpSession
getSession()
protected javax.servlet.http.HttpSession
getSession(boolean b)
protected java.util.Map<java.lang.String,java.lang.Object>
getSessionScopeMap()
Returns the session scope map.-
Methods inherited from class lumis.portal.el.AbstractRequestVariableResolver
resolveVariable
-
-
-
-
Method Detail
-
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 javax.servlet.http.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.
-
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.
-
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.
-
getSession
protected javax.servlet.http.HttpSession getSession()
-
getSession
protected javax.servlet.http.HttpSession getSession(boolean b)
-
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.
-
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.
-
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.
-
-