Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


oracle.jbo.http
Class HttpSessionCookieFactory

java.lang.Object
  extended byoracle.jbo.http.HttpSessionCookieFactory

All Implemented Interfaces:
SessionCookieFactory

public class HttpSessionCookieFactory
extends java.lang.Object
implements SessionCookieFactory

Factory for HttpSessionCookieImpl instances.


Field Summary
static java.lang.String HTTP_SERVLET_REQUEST
static java.lang.String HTTP_SESSION

Fields inherited from interface oracle.jbo.common.ampool.SessionCookieFactory
PROP_REQUEST_COOKIES_KEY, PROP_USER_PRINCIPAL_KEY

Constructor Summary
HttpSessionCookieFactory()

Method Summary
SessionCookie createSessionCookie(java.lang.String applicationId, java.lang.String sessionId, ApplicationPool pool, java.util.Properties properties)
Creates a HttpSessionCookieImpl instance.
java.lang.Class getSessionCookieClass()

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

HTTP_SERVLET_REQUEST

public static final java.lang.String HTTP_SERVLET_REQUEST
See Also:
Constant Field Values

HTTP_SESSION

public static final java.lang.String HTTP_SESSION
See Also:
Constant Field Values

Constructor Detail

HttpSessionCookieFactory

public HttpSessionCookieFactory()

Method Detail

createSessionCookie

public SessionCookie createSessionCookie(java.lang.String applicationId,
                                         java.lang.String sessionId,
                                         ApplicationPool pool,
                                         java.util.Properties properties)
Creates a HttpSessionCookieImpl instance.

The properties object may contain an entry with an instance of an HttpServletRequest. The public static final, HTTP_SERVLET_REQUEST, should be used to add the request object to the properties.

The request object is used to retrieve the cookie value.

Specified by:
createSessionCookie in interface SessionCookieFactory
Parameters:
applicationId - an identifier which may be used to uniquely identify this cookie within the context of a session
sessionId - an option identifier which may be used to uniquely identify this cookie across sessions. If a sessionId is not specified then the HttpServletRequest above will be used to acquire the sessionId from the servlet request's session.
pool - the applicationPool instance which will be used to acquire ApplicationModule instances for this SessionCookie.
properties - an optional properties object which may be used to pass additional creation properties to the SessionCookieFactory.

getSessionCookieClass

public java.lang.Class getSessionCookieClass()

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


Copyright © 1997, 2005, Oracle. All rights reserved.