public class PortalRequestContext extends Object implements VariableResolver, AutoCloseable
Stores all request context on LumisXP.
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 |
---|---|
void |
close() |
Map<String,String> |
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,
Object 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 Map<String,String> getDeviceEntry()
public void setEntry(String key, Object 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.public void close()
close
in interface AutoCloseable
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.