Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.3.0)

E17486-04


oracle.adf.share.http
Class ServletADFContext

java.lang.Object
  extended by oracle.adf.share.ADFContext
      extended by oracle.adf.share.http.ServletADFContext


public class ServletADFContext
extends ADFContext
Since:
release specific (what release of product did this appear in)

Field Summary
static java.lang.String MDS_COMPONENT_CONFIG
           
static java.lang.String WEBAPP_DT_CONTEXT
           
static java.lang.String WEBAPP_FACELETS_DT_CONTEXT
           

 

Fields inherited from class oracle.adf.share.ADFContext
ADF_DOMAIN_CONFIG, ADF_PROPERTY_NS, ADF_SESSIONDEF_PACKAGES, APPLICATION_DATA_KEY, APPLICATION_DATA_SEP, APPLICATION_NAME_SCOPE_KEY, APPLICATION_SCOPE, APPLICATION_UID, ATTRIBUTE_FORMATTER_MAP_KEY, CONNECTIONS_RESOURCE, DEFAULT_APPLICATION_NAME, GLASSFISH_PREFIX, GLASSFISH_SERVER_VERSION, HOT_DEPLOY_STRING, MDS_CC_VALUES_FOR_EDIT, MDS_MAX_CACHE_SIZE, MDS_PARTITION_APPID, MDS_SESSION_OPTIONS_FACTORY, NAMED_CONTEXT_ENV, ORACLE_MULTITENAT_ENABLED, OVERRIDDEN_RES_BUNDLES, OVERRIDE_RES_BUNDLE_PACKAGE, PERSDEF_BASE_PACKAGE, REQUEST_SCOPE, SESSION_SCOPE, SESSIONDEF_BASE_PACKAGE, TYPE_GENERIC, TYPE_HTTP, TYPE_NAMED, TYPE_PORTLET, USE_ROLE_BASED_CUST_CLASS, USER_CUST_CLASSES, VIEW_SCOPE

 

Constructor Summary
protected ServletADFContext()
           

 

Method Summary
 java.util.Map createScope(java.lang.String name)
          May be implemented by custom ADFContext classes to create a scope for the specfied name.
 oracle.mds.config.MDSComponentConfig createServletMDSComponentConfig()
          Deprecated. should not call anymore. See bug#6473565
protected  java.util.Map<java.lang.String,java.lang.Object> findApplicationScopeMap()
           
 java.lang.String getApplicationName()
          Gets the Application Name.
protected  java.lang.Object getApplicationScopekey()
          The application scope as defined by the ADFContext environment in which the application is being used.
protected  java.util.Map<java.lang.String,java.lang.Object> getApplicationScopeMap()
           
 int getContextType()
          Returns a type for the context instance.
protected  java.lang.String getDeployedAppName()
          This method should be overriden in sublclasses so that the appropriate application name is returned.
protected  javax.servlet.http.HttpServletRequest getHttpRequest()
           
protected  javax.servlet.http.HttpServletResponse getHttpResponse()
           
 java.util.Map getStateManager(java.lang.String scopeName, java.util.Hashtable env)
          Returns a StateManagerScopeAdapter for the specified scope.
protected  java.security.Principal getUserPrincipal()
           
 boolean hasEnvironment()
           
 boolean hasSession()
          Checks the environment to see if this ADFContext references a native session.
protected  void initialize(javax.servlet.ServletContext servletContext, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
static void initThreadContext(javax.servlet.ServletContext servletContext, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
static boolean initThreadContextIfNeeded(javax.servlet.ServletContext servletContext)
          Helper method for use by ServletContextListeners.
 boolean isContextFor(javax.servlet.ServletContext servletContext)
          Checks to see if this ADFServletContext instance represents the pass in servletContext
 boolean isDesignTime()
          This method will try to determine if the operating environment is Design Time.
 boolean isHttpContext()
          Returns true if the ADFContext is running in an http container.
protected  Environment loadEnvironment()
           
protected  void putApplicationScopeMap(java.util.Map<java.lang.String,java.lang.Object> scope)
          The application scope as defined by the ADFContext environment in which the application is being used.
 void removeAsCurrent()
          Disassociates this context from the current thread.
protected  void removingScope(java.lang.String name)
           
static void resetThreadContext()
          Deprecated. Replaced by: resetThreadContext(ServletRequest).
static void resetThreadContext(javax.servlet.ServletRequest request)
           
protected  void setEnvironment(Environment env)
           
 void setSecurityContext(SecurityContext ctx)
          Internal: Applications should not use this method.

 

Methods inherited from class oracle.adf.share.ADFContext
clearCachedLocale, createScope, findCurrent, findScope, get, getADFApplicationUID, getADFConfig, getADFConfigEx, getADFContextProperty, getADFFacesViewScopeMap, getADFSettings, getApplication, getApplicationScope, getConfigSecurityContext, getConnectionsContext, getCurrent, getELContext, getEnterpriseId, getEnterpriseName, getEnvironment, getExpressionEvaluator, getExpressionFactory, getLocale, getMDSConfigHelper, getMDSInstanceAsObject, getMDSLogin, getMDSSessionAsObject, getNativeJdbcConnection, getPageFlowScope, getRequestScope, getScope, getScopeNames, getSecurityContext, getSessionDefPackages, getSessionScope, getSkipLevelIdentifier, getThreadLocalValue, getURL, getVariableResolver, getViewScope, hasCurrent, hasMDSSession, hasSecurityContext, initADFContext, initialize, isHighPerformanceEnvEnabled, isHotDeploy, isJBossRuntime, isJEE, isMultiTenantEnabled, isNamedContextRegistered, isWebsphereRuntime, loadSecurityContext, logDiagnosticsForException, putScope, registerNamedContext, registerNamedContext, releaseMDSInstance, releaseMDSSession, removeScope, removeThreadLocalValue, resetADFContext, setAsCurrent, setEnterpriseId, setExpressionEvaluator, setExpressionFactory, setHotDeploy, setLocale, setMDSLogin, setThreadLocalValue, setupADFDomainConfig, setVariableResolver, unregisterNamedContext

 

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

 

Field Detail

MDS_COMPONENT_CONFIG

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

WEBAPP_DT_CONTEXT

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

WEBAPP_FACELETS_DT_CONTEXT

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

Constructor Detail

ServletADFContext

protected ServletADFContext()

Method Detail

isDesignTime

public boolean isDesignTime()
Description copied from class: ADFContext
This method will try to determine if the operating environment is Design Time.
Overrides:
isDesignTime in class ADFContext

isContextFor

public boolean isContextFor(javax.servlet.ServletContext servletContext)
Checks to see if this ADFServletContext instance represents the pass in servletContext
Parameters:
servletContext -
Returns:
if this instance represents the ServletContext

removingScope

protected void removingScope(java.lang.String name)
Overrides:
removingScope in class ADFContext

getDeployedAppName

protected java.lang.String getDeployedAppName()
Description copied from class: ADFContext
This method should be overriden in sublclasses so that the appropriate application name is returned. Default is null.
Overrides:
getDeployedAppName in class ADFContext
Returns:
the deployed application name.

getApplicationName

public java.lang.String getApplicationName()
Description copied from class: ADFContext
Gets the Application Name. This will be over ridden by subclasses that can return a meaningful application name such as in the case of a deployed application.
Overrides:
getApplicationName in class ADFContext

createScope

public java.util.Map createScope(java.lang.String name)
Description copied from class: ADFContext
May be implemented by custom ADFContext classes to create a scope for the specfied name.

ADFContext.getScope(String) will invoke this method if the specified scope has not already been associated with the current ADFContext. The new scope will be associated with the context until removed or until the context is destroyed.

Overrides:
createScope in class ADFContext

getHttpRequest

protected javax.servlet.http.HttpServletRequest getHttpRequest()

getHttpResponse

protected javax.servlet.http.HttpServletResponse getHttpResponse()

setSecurityContext

public void setSecurityContext(SecurityContext ctx)
Description copied from class: ADFContext
Internal: Applications should not use this method.
Overrides:
setSecurityContext in class ADFContext

getUserPrincipal

protected java.security.Principal getUserPrincipal()

setEnvironment

protected void setEnvironment(Environment env)

loadEnvironment

protected Environment loadEnvironment()
Specified by:
loadEnvironment in class ADFContext

getStateManager

public java.util.Map getStateManager(java.lang.String scopeName,
                                     java.util.Hashtable env)
Description copied from class: ADFContext
Returns a StateManagerScopeAdapter for the specified scope.
Overrides:
getStateManager in class ADFContext

hasSession

public boolean hasSession()
Description copied from class: ADFContext
Checks the environment to see if this ADFContext references a native session. The implementation should not create an session if one has not already been created.
Overrides:
hasSession in class ADFContext

getContextType

public int getContextType()
Description copied from class: ADFContext
Returns a type for the context instance. Current types include: