public interface CPAOutboundRuntimeLookupManager extends CPAInboundRuntimeLookupManager
The CPA cache service offers two kinds of lookup mechanisms. One is
offered for such adapters, which need to start an own instance, for each
Channel configuration. Such adapters use the LookupManager
singleton class to read all known Channel configurations for their own
adapter type from the cache at startup, to start an instance of the adapter
for each Channel. These adapter types should also register themselves to
the CallbackController
, in order to be informed about new and
deleted Channel configurations.
The other type of adapters has only one running instance, which can
handle all messages, Channel-independent. These adapters need to retrieve
the Channel configuration per Message at runtime, based on the addressing
information in the header of the currently processed message. The
InboundRuntimeLookup
and InboundRuntimeLookup
objects
allow to retrieve Channel attribute values by checking internally, if a
matching Binding (sender or receiver agreement) exists. The adapter
type/namespace and the given addressing data of the message (from/to
Party/Service and Interface[Namespace]) need to be passed into the
constructor. After constuction the Inbound/OutboundRuntimeLookup either
the Channel object can be retrieved for further processing, or the
configuration values can be retrieved directly by name, as defined in
the adapter type meta data (schema).
OutboundRuntimeLookup lookup = new OutboundRuntimeLookup("MyAdapterName",
"http://mycompany.com/myadapter/namespace", "fromParty", "toParty",
"fromService", "toService", "interface", "interfaceNamespace");
int value = lookup.getChannelValueAsInt("IntValueName");
InboundRuntimeLookup
,
LookupManager
Modifier and Type | Method and Description |
---|---|
byte[] |
getHeaderMappingConfig()
Retrieves the HeaderMapping configuration from the Binding object.
|
getBinding, getBindingValue, getBindingValueAsBinary, getBindingValueAsBoolean, getBindingValueAsInt, getBindingValueAsLong, getBindingValueAsString, getBindingValueAsTable, getChannel, getChannelObject, getChannelValue, getChannelValueAsBinary, getChannelValueAsBoolean, getChannelValueAsInt, getChannelValueAsLong, getChannelValueAsString, getChannelValueAsTable, getInboundBinding, getInboundBinding, getOutboundBinding, getOutboundBinding, isBindingValuePassword, isChannelValuePassword
byte[] getHeaderMappingConfig() throws CPAException
CPAException
- in case that the header mapping can not be retrieved.Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.svc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice