public class AdapterContext
extends java.util.HashMap<java.lang.Object,java.lang.Object>
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 FormModifier and Type | Field and Description |
---|---|
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 and Description |
---|
AdapterContext()
Creates an empty context.
|
AdapterContext(BindingContext ctx)
Creates an context from a binding context.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
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.
public AdapterContext()
public AdapterContext(BindingContext ctx)
ctx
- The binding context for the application.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