public class PortalRequestContext extends Object implements VariableResolver
Stores all request context on Lumis Portal.
The request context can be Devices informations, Session informations, information from External Entities, etc.
It's possible to plug custom Request Context developed by user. In this case
just use the setEntry(String, IPortalRequestContextEntry)
.
#IPortalRequestContext}
Constructor and Description |
---|
PortalRequestContext() |
Modifier and Type | Method and Description |
---|---|
IDevice |
getDeviceEntry()
Returns the Device Request Context thats contains all information about
the device that is making the current request.
|
Object |
getEntry(String key)
Returns the specific request context based on Key parameter.
|
static PortalRequestContext |
getPortalRequestContext(HttpServletRequest request)
Returns the Portal Request Context from a given request.
|
static PortalRequestContext |
getPortalRequestContext(IServiceInterfaceRequest request)
Returns the Portal Request Context from a given request.
|
Object |
resolveVariable(String pName) |
void |
setEntry(String key,
IPortalRequestContextEntry value)
Puts a custom request context on the context map to be used in
another time.
|
public Object getEntry(String key)
key
- id of the Request context to be find. This information is
the entry key of the map.public IDevice getDeviceEntry()
public void setEntry(String key, IPortalRequestContextEntry value)
key
- name of the Request Context. This information is the entry
key of the map.value
- the custom context.public Object resolveVariable(String pName) throws ELException
resolveVariable
in interface VariableResolver
ELException
public static PortalRequestContext getPortalRequestContext(HttpServletRequest request)
request
- request that contains the PortalRequestContext.public static PortalRequestContext getPortalRequestContext(IServiceInterfaceRequest request)
request
- request that contains the PortalRequestContext.Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.