lumis.portal
Class PortalRequestContext

Package class diagram package PortalRequestContext
java.lang.Object
  extended by lumis.portal.PortalRequestContext
All Implemented Interfaces:
VariableResolver

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).

Since:
6.0.0
See Also:
#IPortalRequestContext}

Constructor Summary
PortalRequestContext()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalRequestContext

public PortalRequestContext()
Method Detail

getEntry

public Object getEntry(String key)
Returns the specific request context based on Key parameter.

Parameters:
key - id of the Request context to be find. This information is the entry key of the map.
Returns:
the Request Context that match with key parameter.
Since:
6.0.0

getDeviceEntry

public IDevice getDeviceEntry()
Returns the Device Request Context thats contains all information about the device that is making the current request.

Returns:
the DeviceRequestContext.
Since:
6.0.0

setEntry

public void setEntry(String key,
                     IPortalRequestContextEntry value)
Puts a custom request context on the context map to be used in another time.

Parameters:
key - name of the Request Context. This information is the entry key of the map.
value - the custom context.
Since:
6.0.0

resolveVariable

public Object resolveVariable(String pName)
                       throws ELException
Specified by:
resolveVariable in interface VariableResolver
Throws:
ELException

getPortalRequestContext

public static PortalRequestContext getPortalRequestContext(HttpServletRequest request)
Returns the Portal Request Context from a given request.

Parameters:
request - request that contains the PortalRequestContext.
Returns:
the Portal Request Context.
Since:
6.0.0

getPortalRequestContext

public static PortalRequestContext getPortalRequestContext(IServiceInterfaceRequest request)
Returns the Portal Request Context from a given request.

Parameters:
request - request that contains the PortalRequestContext.
Returns:
the Portal Request Context.
Since:
6.0.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.