<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.common.ampool.SessionCookieImpl | +--oracle.jbo.http.HttpSessionCookieImpl
Default HttpSessionCookie implementation.
The implementation uses a pluggable helper interface, HttpSessionCookieHelper
, to generate unique session identifiers for browser sessions, to read browser cookie values, and to write browser cookie values.
Implements the BindingListener
interface. When a session HttpContainer
instance is unbound from an HttpSession context the BindingListeners will be notified that a timeout event occured. The timeout implementation releases the application module resource to the application pool. The release is unmanaged since the request is assumed to have already ended.
The HttpSessionCookieImpl also implements additional support for BC4J based authentication. If a single sign on module like mod_osso is not being used then an application developer can set a security principal and security credential in the HttpSession context for later authentication by the BC4J security login module. In order to enable this mode the application developer must have configured the jbo.security.enforce property. The principal and credentials should be cached in the session as follows:
session.setAttribute( JboContext.SECURITY_PRINCIPAL, (String)<principal name>); session.setAttribute( JboContext.SECURITY_CREDENTIALS, (String)<credential>);
Finally, the HttpSessionCookie implementation uses composition to implement the SessionCookie interface. All SessionCookie methods are delegated to an instance of the default SessionCookie implementation. Please see SessionCookieImpl
for more infomartion regarding the default session cookie implementation.
Field Summary |
Fields inherited from interface oracle.jbo.common.ampool.SessionCookie |
FORCE_RELEASE_MODE, MANAGED_RELEASE_MODE, NULL_PASSIVATION_ID, REMOVE_RESOURCE, RESERVED_MANAGED_RELEASE_MODE, RESERVED_UNMANAGED_RELEASE_MODE, SHARED, SHARED_MANAGED_RELEASE_MODE, SHARED_RELEASE_MODE, SHARED_UNMANAGED_RELEASE_MODE, STATE_MANAGED, STATE_UNMANAGED, UNSHARED |
Constructor Summary | |
HttpSessionCookieImpl(java.lang.String applicationId, java.lang.String sessionId, ApplicationPool pool) This constructor may be used if the sessionId is already known. | |
HttpSessionCookieImpl(java.lang.String applicationId, java.lang.String sessionId, ApplicationPool pool, java.security.Principal userPrincipal, javax.servlet.http.HttpServletRequest request) |
Method Summary | |
protected void |
afterApplicationModuleRelease() |
protected void |
beforeApplicationModuleRelease(ApplicationModule am) |
boolean |
isFailoverEnabled() Indicates that session application module state should be persisted to secondary storage immediately upon a managed release. |
java.lang.String |
readValue(java.lang.Object source) Read the cookie value to the specified data sink. |
void |
timeout(oracle.jbo.http.BindingEvent ev) |
ApplicationModule |
useApplicationModule(boolean lock, long waitTimeout) Returns an application module instance for the current thread. |
void |
valueBound(oracle.jbo.http.BindingEvent ev) |
void |
valueUnbound(oracle.jbo.http.BindingEvent ev) |
void |
writeValue(java.lang.Object sink) Write the cookie value to the specified data sink. |
Methods inherited from class oracle.jbo.common.ampool.SessionCookieImpl | ||||||||||||||||||||||||
copyInto, equals, getApplicationId, getClientEnvironment, getClientEnvironment, getEnvConfigurationName, getEnvInfoProvider, getEnvironment, getEnvironment, getLastUpdate, getMostRecentStackId, getPassivationId, getPoolSignature, getProperty, getReservedPassivationId, getSessionId, getSSOSubscriber, getSSOUserName, getSyncLock, getThreadRefCount, getUserData, getValue, hashCode, isActivationRequired, isActivationRequired, isApplicationModuleReleased, isApplicationModuleReleasedByThread, isApplicationModuleReserved, isConnectionPoolingEnabled, isResetNonTransactionalState, parsePassivationId, parseSessionId, releaseApplicationModule
|