Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

oracle.apps.fnd.applcore.common
Class ApplSessionFilter

java.lang.Object
  extended by oracle.apps.fnd.applcore.common.ApplSessionFilter
All Implemented Interfaces:
javax.servlet.Filter

public class ApplSessionFilter
extends java.lang.Object
implements javax.servlet.Filter

The ApplSessionFilter takes care of setting up and making available an ApplSession for use by applications code that executes within the request, assuming the application is configured to use ApplSession's.


Constructor Summary
ApplSessionFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          Does the work of our ApplSessionFilter: Check if an FND session cookie exists If not, create a new one, attach to it, and set the FND session cookie on the request If a cookie exists, validate it.
static java.lang.String getCookieDomain(javax.servlet.http.HttpServletRequest request)
          Deprecated. for the api in ApplSessionView
 javax.servlet.FilterConfig getFilterConfig()
           
 java.util.HashMap<java.lang.String,java.lang.String> getLastAccessedPillarInfoFromCookie(javax.servlet.http.HttpServletRequest request)
          Get the last access pillar from the cookie Cookie structure ("FND_SESSION","PillarA:SessionIdA:timestamp/PillarB:SessionIdB:timestamp")
 java.lang.String getSessionCookieByPillar(java.lang.String PillarName, javax.servlet.http.HttpServletRequest request)
          Get the SessionCookie for the current pillar from request message
static java.lang.String getSessionCookieName()
          Deprecated. for the version in ApplSessionView
 void init(javax.servlet.FilterConfig filterConfig)
           
 void setFilterConfig(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplSessionFilter

public ApplSessionFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
Specified by:
init in interface javax.servlet.Filter

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Does the work of our ApplSessionFilter: If the JVM being used is not configured to use FND sessions, then no session will be created or attached to/detached from.

Specified by:
doFilter in interface javax.servlet.Filter
Parameters:
request -
response -
chain -
Throws:
java.io.IOException
javax.servlet.ServletException

getFilterConfig

public javax.servlet.FilterConfig getFilterConfig()

setFilterConfig

public void setFilterConfig(javax.servlet.FilterConfig filterConfig)

getSessionCookieName

public static java.lang.String getSessionCookieName()
Deprecated. for the version in ApplSessionView

See Also:
ApplSessionView.getSessionCookieName();

getLastAccessedPillarInfoFromCookie

public java.util.HashMap<java.lang.String,java.lang.String> getLastAccessedPillarInfoFromCookie(javax.servlet.http.HttpServletRequest request)
Get the last access pillar from the cookie Cookie structure ("FND_SESSION","PillarA:SessionIdA:timestamp/PillarB:SessionIdB:timestamp")

Parameters:
request -
Returns:

getCookieDomain

public static java.lang.String getCookieDomain(javax.servlet.http.HttpServletRequest request)
Deprecated. for the api in ApplSessionView

See Also:
ApplSessionView.getCookieDomain(javax.servlet.http.HttpServletRequest);

getSessionCookieByPillar

public java.lang.String getSessionCookieByPillar(java.lang.String PillarName,
                                                 javax.servlet.http.HttpServletRequest request)
Get the SessionCookie for the current pillar from request message

Parameters:
PillarName -
request -
Returns:
String representing the current pillar's session cookie

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.