|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.browseradapter.HttpSessionContext
This is a container for session information belonging to current request.
Field Summary | |
static java.lang.String |
ERR_INVALID_X509CERT
|
static java.lang.Long |
GENERIC_USER_ID
|
Constructor Summary | |
HttpSessionContext(com.ibm.commerce.browseradapter.HttpServletRequest req,
com.ibm.commerce.browseradapter.HttpServletResponse res,
TypedProperty typedProperty)
Default constructor. |
Method Summary | |
void |
commit()
Commits the session data. |
com.ibm.commerce.server.WCSCookie |
getCookie()
Returns the WCSCookie class containing the session management cookie. |
java.lang.Object |
getExtendedSessionData(java.lang.String strParamName)
Gets an extended session data, asociated with specified name, for current user. |
protected int |
getHierarchyChange()
Returns numeric value identifying the user identity change during the request. |
SessionData |
getSessionData()
Returns the session data object asociated with current request |
java.lang.String |
getUniqueSessionTag()
Gets the unique session tag. |
java.lang.Long |
getValidUserId()
Gets the validated user Id. |
java.lang.Long |
handleSingleSignOn(java.lang.Long lExistingUserId,
com.ibm.commerce.browseradapter.HttpServletRequest req)
Returns userId of the user who has been identified in LTPA token or null if LTPA token does not correspond to any user. |
java.lang.Long |
handleX509User(java.lang.Long lExistingUserId,
com.ibm.commerce.browseradapter.HttpServletRequest req)
|
protected void |
initializeInstanceVariables(com.ibm.commerce.browseradapter.HttpServletRequest req,
com.ibm.commerce.browseradapter.HttpServletResponse res,
TypedProperty typedProperty)
Initializes all instance variables |
protected void |
readExtendedSessionData()
Reads an extended session data |
void |
rollback()
Rollback previously set session data. |
void |
setExtendedSessionData(java.lang.String strParamName,
java.lang.Object oParamVal)
Sets an extended session data. |
void |
setSessionData(SessionData sessionData)
Sets the base session data. |
void |
setUniqueSessionTag(java.lang.String strSessionTag)
Sets the unique session tag. |
boolean |
validateX509Attribute(java.lang.String strAttributeName,
int nLength,
boolean bNullable)
|
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 ERR_INVALID_X509CERT
public static final java.lang.Long GENERIC_USER_ID
Constructor Detail |
public HttpSessionContext(com.ibm.commerce.browseradapter.HttpServletRequest req, com.ibm.commerce.browseradapter.HttpServletResponse res, TypedProperty typedProperty) throws ECSystemException
Method Detail |
public void commit() throws ECSystemException
commit
in interface SessionContext
com.ibm.commerce.adapter.SessionContext
ECSystemException
- public com.ibm.commerce.server.WCSCookie getCookie()
public java.lang.Object getExtendedSessionData(java.lang.String strParamName)
getExtendedSessionData
in interface SessionContext
com.ibm.commerce.adapter.SessionContext
strParamName
- String - name of extended session dataprotected int getHierarchyChange()
i
- java.lang.Longf
- java.lang.Longpublic SessionData getSessionData()
getSessionData
in interface SessionContext
public java.lang.String getUniqueSessionTag()
getUniqueSessionTag
in interface SessionContext
public java.lang.Long getValidUserId() throws ECSystemException
getValidUserId
in interface SessionContext
ECSystemException
- public java.lang.Long handleSingleSignOn(java.lang.Long lExistingUserId, com.ibm.commerce.browseradapter.HttpServletRequest req) throws ECSystemException
public java.lang.Long handleX509User(java.lang.Long lExistingUserId, com.ibm.commerce.browseradapter.HttpServletRequest req) throws ECSystemException
protected void initializeInstanceVariables(com.ibm.commerce.browseradapter.HttpServletRequest req, com.ibm.commerce.browseradapter.HttpServletResponse res, TypedProperty typedProperty)
protected void readExtendedSessionData()
strParamName
- String - name of extended session datapublic void rollback()
rollback
in interface SessionContext
ECSystemException
- public void setExtendedSessionData(java.lang.String strParamName, java.lang.Object oParamVal)
setExtendedSessionData
in interface SessionContext
strParamName
- String - session data nameoParamValue
- Object - session data valueECException
- public void setSessionData(SessionData sessionData) throws ECSystemException
setSessionData
in interface SessionContext
ECSystemException
- public void setUniqueSessionTag(java.lang.String strSessionTag) throws ECException
setUniqueSessionTag
in interface SessionContext
strSessionTag
- String - session specific tagECException
- public boolean validateX509Attribute(java.lang.String strAttributeName, int nLength, boolean bNullable) throws ECSystemException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |