org.objectweb.telosys.uil
Class RequestEnv

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.uil.RequestEnv

public class RequestEnv
extends TelosysObject

The Telosys request environment.
The 'request ecosystem' for an 'action request' or a 'service request'
Holds the ScreenContext for the current http request


Field Summary
static int DO_NOT_EXPOSE_DATA
           
static int EXPOSE_DATA
           
 
Method Summary
static RequestEnv getEnv(javax.servlet.ServletRequest servletRequest)
          Returns the RequestEnv instance stored in the request attributes
 ScreenContext getScreenContext()
          Returns the ScreenContext associated with the current ScreenAction request
 ScreenData getScreenData()
          Returns the ScreenData of the ScreenContext associated with the current ScreenAction request
static void setEnv(javax.servlet.http.HttpServletRequest httpServletRequest, ScreenContext screenContext, int flag)
          Constructs a RequestEnv instance and store it in the request attributes
Since v 1.0.1 expose the ScreenData elements (if any) as request attributes
 
Methods inherited from class org.objectweb.telosys.common.TelosysObject
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPOSE_DATA

public static final int EXPOSE_DATA
See Also:
Constant Field Values

DO_NOT_EXPOSE_DATA

public static final int DO_NOT_EXPOSE_DATA
See Also:
Constant Field Values
Method Detail

setEnv

public static void setEnv(javax.servlet.http.HttpServletRequest httpServletRequest,
                          ScreenContext screenContext,
                          int flag)
Constructs a RequestEnv instance and store it in the request attributes
Since v 1.0.1 expose the ScreenData elements (if any) as request attributes

Parameters:
httpServletRequest -
screenContext -
flag -

getEnv

public static RequestEnv getEnv(javax.servlet.ServletRequest servletRequest)
Returns the RequestEnv instance stored in the request attributes

Parameters:
servletRequest -
Returns:
the RequestEnv available for the given request (or null if none)

getScreenContext

public ScreenContext getScreenContext()
Returns the ScreenContext associated with the current ScreenAction request

Returns:
the ScreenContext ( or null if there is no ScreenContext available for this request )

getScreenData

public ScreenData getScreenData()
Returns the ScreenData of the ScreenContext associated with the current ScreenAction request

Returns:
the ScreenData ( or null if there is no ScreenData available for this request )