|
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.http.HttpSessionCookieHelperImpl
Default HttpSessionCookieHelper implementation.
| Constructor Summary | |
HttpSessionCookieHelperImpl()Constructor | |
| Method Summary | |
java.lang.String |
encodeURL(java.lang.String url, SessionCookie[] cookies)Encode the specified url with the specified HttpSessionCookies. |
java.lang.String |
generateSessionId(javax.servlet.http.HttpServletRequest request)Return a unique identifier for this session. |
java.lang.String |
readCookieValue(javax.servlet.http.HttpServletRequest request, java.lang.String applicationName)Read the session id from the HttpServletRequest. |
void |
writeCookieValue(javax.servlet.http.HttpServletResponse response, java.lang.String applicationName, java.lang.String cookieValue)Write the session id to the HttpServletResponse. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpSessionCookieHelperImpl()
| Method Detail |
public java.lang.String readCookieValue(javax.servlet.http.HttpServletRequest request,
java.lang.String applicationName)
HttpSessionCookieHelperreadCookieValue in interface HttpSessionCookieHelperapplicationName - the name of the application that has session state
public void writeCookieValue(javax.servlet.http.HttpServletResponse response,
java.lang.String applicationName,
java.lang.String cookieValue)
HttpSessionCookieHelperwriteCookieValue in interface HttpSessionCookieHelperapplicationName - the name of the application that has session statepublic java.lang.String generateSessionId(javax.servlet.http.HttpServletRequest request)
HttpSessionCookieHelperThe session identifier should be unique across virtual machines for each application client. Conflicting session identifiers may result in one application client reading and changing the application state of another application client.
The session identifer should also be consistent across requests for each client. If a given application client requests all generate different session identifiers the application pool will not be able to track the application state for that application client between those requests and will treat each individual request as having originated from a different application client.
The default implementation is using the client IP address to generate session identifiers. Application developers may override this implementation to use a different technique to generate session identifiers.
generateSessionId in interface HttpSessionCookieHelperpublic java.lang.String encodeURL(java.lang.String url, SessionCookie[] cookies)
HttpSessionCookieHelperThis method should be invoked from HttpContainer.encodeURL(String)
encodeURL in interface HttpSessionCookieHelper
|
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 | ||||||||||
Copyright © 1997, 2003, Oracle. All rights reserved.