com.sap.tc.mobile.cfs.wdintapp
Class MWDSessionManager

java.lang.Object
  extended by com.sap.tc.mobile.cfs.wdintapp.MWDSessionManager

public final class MWDSessionManager
extends java.lang.Object

Mobile Web Dynpro session manager manages CFS sessions for access by application code.

Author:
d039184

Constructor Summary
MWDSessionManager()
           
 
Method Summary
static void clearSession(java.lang.Object magic)
          NON-API (INTERNAL): Clear session for active request/response cycle after request processing.
static Session getSession()
          Get CFS session for WD client session.
static boolean hasSession()
          NON-API (INTERNAL): Check whether session is associated with current thread.
static java.lang.Object setSession(Session sess)
          NON-API (INTERNAL): Set session for active request/response cycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MWDSessionManager

public MWDSessionManager()
Method Detail

getSession

public static Session getSession()
Get CFS session for WD client session.

Returns:
CFS session for given WD client session.

hasSession

public static boolean hasSession()
NON-API (INTERNAL): Check whether session is associated with current thread.

Returns:
true, if there is a session associated with current thread.

setSession

public static java.lang.Object setSession(Session sess)
NON-API (INTERNAL): Set session for active request/response cycle.

Parameters:
sess - session to set.
Returns:
magic object required for clearing the session.

clearSession

public static void clearSession(java.lang.Object magic)
NON-API (INTERNAL): Clear session for active request/response cycle after request processing.

Parameters:
magic - magic object required for clearing the session from setSession().