Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.0.0)

E10686-01


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
           

 

Fields inherited from class oracle.adf.share.ADFContext
APPLICATION_SCOPE, CONNECTIONS_RESOURCE, MDS_SESSION_OPTIONS_FACTORY, NAMED_CONTEXT_ENV, PERSDEF_BASE_PACKAGE, REQUEST_SCOPE, SESSION_SCOPE, SESSIONDEF_BASE_PACKAGE, TYPE_GENERIC, TYPE_HTTP, TYPE_NAMED, TYPE_PORTLET, USE_ROLE_BASED_CUST_CLASS, VIEW_SCOPE

 

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()
           
 ADFConfig getADFConfig()
          Gets the ADF configuration Object used by current thread.
 java.util.Map<java.lang.String,java.lang.Object> getADFFacesViewScopeMap()
           
 int getContextType()
          Returns a type for the context instance.
protected  java.lang.String getDeployedAppName()
           
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()
           
 java.util.Map<java.lang.String,java.lang.Object> getViewScope()
          Returns the installed view scope.
 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)
           
 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()
           
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
findScope, get, getADFSettings, getApplication, getApplicationName, getApplicationScope, getConfigSecurityContext, getConnectionsContext, getCurrent, getEnvironment, getExpressionEvaluator, getLocale, getMDSConfigHelper, getMDSInstanceAsObject, getMDSLogin, getMDSSessionAsObject, getRequestScope, getScope, getScopeNames, getSecurityContext, getSessionDefPackages, getSessionScope, getSkipLevelIdentifier, getURL, getVariableResolver, hasMDSSession, hasSecurityContext, isNamedContextRegistered, loadSecurityContext, putScope, registerNamedContext, registerNamedContext, removeAsCurrent, removeScope, setAsCurrent, setExpressionEvaluator, setLocale, setMDSLogin, 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

Method Detail

getADFConfig

public ADFConfig getADFConfig()
Gets the ADF configuration Object used by current thread.
Overrides:
getADFConfig in class ADFContext

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

getDeployedAppName

protected java.lang.String getDeployedAppName()
Overrides:
getDeployedAppName 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: