|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.4.0) E10686-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.share.ADFContext
oracle.adf.share.http.ServletADFContext
public class ServletADFContext
Field Summary | |
---|---|
static java.lang.String |
MDS_COMPONENT_CONFIG
|
static java.lang.String |
WEBAPP_DT_CONTEXT
|
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. |
protected java.util.Map |
createScope(java.lang.String name,
boolean concurrent)
|
oracle.mds.config.MDSComponentConfig |
createServletMDSComponentConfig()
Deprecated. should not call anymore. See bug#6473565 |
protected java.util.Map<java.lang.String,java.lang.Object> |
findApplicationScopeMap()
|
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. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MDS_COMPONENT_CONFIG
public static final java.lang.String WEBAPP_DT_CONTEXT
Method Detail |
---|
public boolean isDesignTime()
ADFContext
isDesignTime
in class ADFContext
public boolean isContextFor(javax.servlet.ServletContext servletContext)
servletContext
-
protected java.lang.String getDeployedAppName()
ADFContext
getDeployedAppName
in class ADFContext
public java.util.Map createScope(java.lang.String name)
ADFContext
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.
createScope
in class ADFContext
protected java.util.Map createScope(java.lang.String name, boolean concurrent)
createScope
in class ADFContext
protected javax.servlet.http.HttpServletRequest getHttpRequest()
protected javax.servlet.http.HttpServletResponse getHttpResponse()
public void setSecurityContext(SecurityContext ctx)
ADFContext
setSecurityContext
in class ADFContext
protected java.security.Principal getUserPrincipal()
protected void setEnvironment(Environment env)
protected Environment loadEnvironment()
loadEnvironment
in class ADFContext
public java.util.Map getStateManager(java.lang.String scopeName, java.util.Hashtable env)
ADFContext
getStateManager
in class ADFContext
public boolean hasSession()
ADFContext
hasSession
in class ADFContext
public int getContextType()
ADFContext
getContextType
in class ADFContext
public boolean isHttpContext()
ADFContext
Applications may use this to determine if it is okay to reference Http classes.
isHttpContext
in class ADFContext
public static boolean initThreadContextIfNeeded(javax.servlet.ServletContext servletContext)
servletContext
-
protected java.lang.Object getApplicationScopekey()
ADFContext
getApplicationScopekey
in class ADFContext
protected java.util.Map<java.lang.String,java.lang.Object> getApplicationScopeMap()
getApplicationScopeMap
in class ADFContext
protected void putApplicationScopeMap(java.util.Map<java.lang.String,java.lang.Object> scope)
ADFContext
putApplicationScopeMap
in class ADFContext
scope
- - The application scope.protected java.util.Map<java.lang.String,java.lang.Object> findApplicationScopeMap()
findApplicationScopeMap
in class ADFContext
public static void initThreadContext(javax.servlet.ServletContext servletContext, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
protected void initialize(javax.servlet.ServletContext servletContext, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
public static void resetThreadContext(javax.servlet.ServletRequest request)
public static void resetThreadContext()
resetThreadContext(ServletRequest)
.
public void removeAsCurrent()
ADFContext
removeAsCurrent
in class ADFContext
public boolean hasEnvironment()
hasEnvironment
in class ADFContext
public oracle.mds.config.MDSComponentConfig createServletMDSComponentConfig()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.4.0) E10686-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |