com.ibm.commerce.browseradapter
Class HttpSessionContext

java.lang.Object
  |
  +--com.ibm.commerce.browseradapter.HttpSessionContext
All Implemented Interfaces:
SessionContext

public class HttpSessionContext
extends java.lang.Object
implements SessionContext

Reserved for IBM internal use.


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
static java.lang.Long GENERIC_USER_ID
           
 
Constructor Summary
HttpSessionContext(HttpServletRequest req, HttpServletResponse res, TypedProperty typedProperty)
          Reserved for IBM internal use.
 
Method Summary
 void commit()
          Reserved for IBM internal use.
 java.lang.Object getExtendedSessionData(java.lang.String strParamName)
          Reserved for IBM internal use.
protected  int getHierarchyChange()
          Reserved for IBM internal use.
  SessionData getSessionData()
          Reserved for IBM internal use.
 java.lang.String getUniqueSessionTag()
          Reserved for IBM internal use.
 WCUserSession getUserSession()
          Reserved for IBM internal use.
 java.lang.Long getValidUserId()
          Reserved for IBM internal use.
 java.lang.Long handleSingleSignOn(java.lang.Long lExistingUserId, HttpServletRequest req)
          Reserved for IBM internal use.
 java.lang.Long handleX509User(java.lang.Long lExistingUserId, HttpServletRequest req)
          Reserved for IBM internal use.
protected  void initializeInstanceVariables(HttpServletRequest req, HttpServletResponse res, TypedProperty typedProperty)
          Reserved for IBM internal use.
 void rollback()
          Reserved for IBM internal use.
 void setExtendedSessionData(java.lang.String strParamName, java.lang.Object strParamVal)
          Reserved for IBM internal use.
 void setSessionData( SessionData sessionData)
          Reserved for IBM internal use.
 void setUniqueSessionTag(java.lang.String strSessionTag)
          Reserved for IBM internal use.
 boolean validateX509Attribute(java.lang.String strAttributeName, int nLength, boolean bNullable)
          Reserved for IBM internal use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

GENERIC_USER_ID

public static final java.lang.Long GENERIC_USER_ID
Constructor Detail

HttpSessionContext

public HttpSessionContext(HttpServletRequest req,
                          HttpServletResponse res,
TypedProperty typedProperty)
                   throws ECSystemException
Reserved for IBM internal use.
Method Detail

commit

public void commit()
            throws ECSystemException
Reserved for IBM internal use. Commits the session data.
Specified by:
commit in interface SessionContext
Throws:
ECSystemException

getExtendedSessionData

public java.lang.Object getExtendedSessionData(java.lang.String strParamName)
Reserved for IBM internal use. Gets an extended session data.
Specified by:
getExtendedSessionData in interface SessionContext
Parameters:
strParamName - String - name of extended session data
Returns:
String - value of extended session data

getSessionData

public SessionData getSessionData()
Reserved for IBM internal use. Gets the base session data.
Specified by:
getSessionData in interface SessionContext
Returns:
SessionData

getUniqueSessionTag

public java.lang.String getUniqueSessionTag()
Reserved for IBM internal use. Gets the unique session tag.
Specified by:
getUniqueSessionTag in interface SessionContext
Returns:
String - session tag

getValidUserId

public java.lang.Long getValidUserId()
                              throws ECSystemException
Reserved for IBM internal use. Gets the validated user Id.
Specified by:
getValidUserId in interface SessionContext
Returns:
Long - the user Id
Throws:
ECSystemException

initializeInstanceVariables

protected void initializeInstanceVariables(HttpServletRequest req,
                                           HttpServletResponse res,
TypedProperty typedProperty)
                                    throws ECSystemException
Reserved for IBM internal use.
ECSystemException

rollback

public void rollback()
              throws ECSystemException
Reserved for IBM internal use. Rollback previously set session data.
Specified by:
rollback in interface SessionContext
Throws:
ECSystemException

setExtendedSessionData

public void setExtendedSessionData(java.lang.String strParamName,
                                   java.lang.Object strParamVal)
                            throws ECException
Reserved for IBM internal use. Sets an extended session data.
Specified by:
setExtendedSessionData in interface SessionContext
Parameters:
strParamName - String - session data name
Throws:
ECException

setSessionData

public void setSessionData(SessionData sessionData)
                    throws ECSystemException
Reserved for IBM internal use. Sets the base session data.
Specified by:
setSessionData in interface SessionContext
Parameters:
sessionData - the session data to set.
Throws:
ECSystemException

setUniqueSessionTag

public void setUniqueSessionTag(java.lang.String strSessionTag)
                         throws ECException
Reserved for IBM internal use. Sets the unique session tag.
Specified by:
setUniqueSessionTag in interface SessionContext
Parameters:
strSessionTag - String - session specific tag
Throws:
ECException

handleSingleSignOn

public java.lang.Long handleSingleSignOn(java.lang.Long lExistingUserId,
                                         HttpServletRequest req)
                                  throws ECSystemException
Reserved for IBM internal use. Returns userId of the user who has been identified in LTPA token or null if LTPA token does not correspond to any user.
Returns:
Long
ECSystemException

handleX509User

public java.lang.Long handleX509User(java.lang.Long lExistingUserId,
                                     HttpServletRequest req)
                              throws ECSystemException
Reserved for IBM internal use. Handles an logon for user with X509 certificate.
ECSystemException

validateX509Attribute

public boolean validateX509Attribute(java.lang.String strAttributeName,
                                     int nLength,
                                     boolean bNullable)
                              throws ECSystemException
Reserved for IBM internal use.
ECSystemException

getUserSession

public WCUserSession getUserSession()
Reserved for IBM internal use. Returns the iUserSessionInitial.
Returns:
WCUserSession

getHierarchyChange

protected int getHierarchyChange()
Reserved for IBM internal use. Returns numeric value identifying the user identity change during the request. The value -1,0,1 corresponds to logoff, no change, logon action.
Returns:
int