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'
Provides the standard servlet objects ( ServletContext, HttpSession, HttpServletRequest )
And provides the telosys objects ( ScreenApplication, ScreenSession, ScreenContext )
NB: the ScreenContext is available only for an 'action request'


Method Summary
static RequestEnv getEnv(javax.servlet.ServletRequest servletRequest)
           
 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)
           
static void setEnv(javax.servlet.http.HttpServletRequest httpServletRequest, ScreenSession screenSession)
           
 
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
 

Method Detail

setEnv

public static void setEnv(javax.servlet.http.HttpServletRequest httpServletRequest,
                          ScreenSession screenSession)

setEnv

public static void setEnv(javax.servlet.http.HttpServletRequest httpServletRequest,
                          ScreenContext screenContext)

getEnv

public static RequestEnv getEnv(javax.servlet.ServletRequest servletRequest)

getScreenContext

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

Returns:
the ScreenContext (or null if the current request is not a ScreenAction )

getScreenData

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

Returns:
the ScreenData (or null if the current request is not a ScreenAction )