|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.3.0) E17483-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
oracle.adf.model.adapter.AdapterContext
public class AdapterContext
Defines the context for an adapter.Adapters can get the information like request, connection informstion etc from this context.
Design time context is derived from this context class. Design time context stores or overrides information that are relevant for the design time only.
DTContext
, Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Field Summary | |
---|---|
static java.lang.String |
CONNECTION_FILE_NAME Name of the connection file. |
static java.lang.String |
CONNECTION_INFO Key to extract connection information from a parameter map. |
static java.lang.String |
HTTP_REQUEST |
static java.lang.String |
HTTP_RESPONSE |
static java.lang.String |
INITIAL_CONTEXT_FACTORY Context factory impl name. |
Constructor Summary | |
---|---|
AdapterContext() Creates an empty context. |
|
AdapterContext(BindingContext ctx) Creates an context from a binding context. |
Method Summary | |
---|---|
BindingContext |
getBindingContext() Gets the binding context associated with this context. |
javax.naming.Context |
getConnectionContext() Gets the context for the connections. |
static AdapterContext |
getDefaultContext() |
java.net.URL |
getFileURL(java.lang.String loc) Creates a file URL based on Location. |
oracle.adf.share.logging.ADFLogger |
getLogger() Returns the logger for this context. |
java.io.InputStream |
getResourceStream(java.lang.String loc) Creates the InputStream for the given resource location. |
java.io.InputStream |
getResourceStream(java.lang.String loc, AuthenticationScheme authScheme) Creates the input stream from the resource using authentication information. |
java.net.URL |
getURL(java.lang.String urlString) Creates a URL based on url String. |
static void |
setCurrentContextImpl(DTContext impl) Sets the current design time implementation of this class. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
public static final java.lang.String HTTP_REQUEST
public static final java.lang.String HTTP_RESPONSE
public static final java.lang.String CONNECTION_FILE_NAME
public static final java.lang.String INITIAL_CONTEXT_FACTORY
public static final java.lang.String CONNECTION_INFO
Adapters can use connection information to access a data source. The adapter definition contains the name of the connection used by the adapter.
Constructor Detail |
---|
public AdapterContext()
public AdapterContext(BindingContext ctx)
ctx
- The binding context for the application.Method Detail |
---|
public static AdapterContext getDefaultContext()
public static void setCurrentContextImpl(DTContext impl)
public javax.naming.Context getConnectionContext() throws java.lang.Exception
java.lang.Exception
public BindingContext getBindingContext()
public oracle.adf.share.logging.ADFLogger getLogger()
public java.io.InputStream getResourceStream(java.lang.String loc)
loc
- location for the resourcepublic java.io.InputStream getResourceStream(java.lang.String loc, AuthenticationScheme authScheme)
loc
- Resource locationauthScheme
- Authentication details that was typically fetched from the Connection.public java.net.URL getFileURL(java.lang.String loc)
loc
-public java.net.URL getURL(java.lang.String urlString)
getFileURL(urlString)
urlString,
- to be used for creation of URL
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.3.0) E17483-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |