Vous êtes sur la page 1sur 4

com.sap.

*
com.sap.aii.mapping.api.StreamTransformationConstants
publicstaticfinalString CONTENT_TYPE

"ContentType"

publicstaticfinalString CONVERSATION_ID

"ConversationId"

publicstaticfinalString DIRECTION

"Direction"

publicstaticfinalString DIRECTION_FAULT

"Fault"

publicstaticfinalString DIRECTION_REQUEST

"Request"

publicstaticfinalString DIRECTION_RESPONSE

"Response"

publicstaticfinalString DYNAMIC_CONFIGURATION
publicstaticfinalString INTERFACE

"DynamicConfiguration"
"Interface"

publicstaticfinalString INTERFACE_NAMESPACE

"InterfaceNamespace"

publicstaticfinalString MAPPING_TRACE

"MappingTrace"

publicstaticfinalString MESSAGE_CLASS

"MessageClass"

publicstaticfinalString MESSAGE_ID

"MessageId"

publicstaticfinalString PROCESSING_MODE

"ProcessingMode"

publicstaticfinalString RECEIVER_NAME

"ReceiverName"

publicstaticfinalString RECEIVER_NAMESPACE

"ReceiverNamespace"

publicstaticfinalString RECEIVER_PARTY

"ReceiverParty"

publicstaticfinalString RECEIVER_PARTY_AGENCY

"ReceiverPartyAgency"

publicstaticfinalString RECEIVER_PARTY_SCHEME

"ReceiverPartyScheme"

publicstaticfinalString RECEIVER_SERVICE

"ReceiverService"

publicstaticfinalString RECEIVER_SYSTEM

"ReceiverSystem"

publicstaticfinalString REF_TO_MESSAGE_ID

"RefToMessageId"

publicstaticfinalString SENDER_NAME

"SenderName"

publicstaticfinalString SENDER_NAMESPACE

"SenderNamespace"

publicstaticfinalString SENDER_PARTY

"SenderParty"

publicstaticfinalString SENDER_PARTY_AGENCY

"SenderPartyAgency"

publicstaticfinalString SENDER_PARTY_SCHEME

"SenderPartyScheme"

publicstaticfinalString SENDER_SERVICE

"SenderService"

publicstaticfinalString SENDER_SYSTEM

"SenderSystem"

publicstaticfinalString TIME_SENT

"TimeSent"

publicstaticfinalString VERSION_MAJOR

"VersionMajor"

publicstaticfinalString VERSION_MINOR

"VersionMinor"

com.sap.aii.mapping.lookup.LookupService.Internal
publicstaticfinalString APPL_REP

"REPOSITORY"

publicstaticfinalString APPL_RUN

"RUNTIME"

com.sap.aii.mapping.value.api.XIVMFactory
publicstaticfinalStri SOLUTION_MANAGER_CONTE
ng XT
publicstaticfinalStri
XI_CONTEXT
ng

"http://sap.com/xi/SolutionManage
r"
"http://sap.com/xi/XI"

Interface Container
publicinterfaceContainer
An instance of this object enables you to cache the values that you want to read again when you
next call the same user-defined function. Each user defined function has its own container
instance.
The following source code queries the interface namespace of the message header in a userdefined function getInterfaceNamesapce, displays it as information by using
the AbstractTrace object and returns it as a result of the function:

public String getInterfaceNamespace(Container container)throws


StreamTransformationException {
InputHeader inputHeader = container.getInputHeader();
String interfaceNS = inputHeader.getInterfaceNamespace();
AbstractTrace trace = container.getTrace();
trace.addDebugMessage("Interface namespace: "+interfaceNS);
return interfaceNS;
}
See Also:
GlobalContainer

Method Summary
GlobalContainer getGlobalContainer()
Returns the global container for storing objects shich should be
accessable in other user defined functions.
InputHeader getInputHeader()
Returns the access to the message header input parameters, like
sender system , receiver system, etc.
InputParameters getInputParameters()
Returns the access to the import parameters which have been defined
in the signature tab of the message mapping editor.
OutputHeader getOutputHeader()
Returns the access to the message header output parameters.
OutputParameters getOutputParameters()
Returns the access to the export parameters which have been defined
in the signature tab of the message mapping editor.
Object getParameter(Stringname)

Returns the parameter that was saved under the given name in this
user-specific function by using setParameter(String,Object) method.
AbstractTrace getTrace()
Returns the mapping trace object that can be used to add trace
messages.
Map getTransformationParameters()
Deprecated. use getInputParameters() instead
void setParameter(Stringname,Objectvalue)
Saves an object under the given name in a container for a userspecific function.

Method Detail

getParameter
ObjectgetParameter(Stringname)
Returns the parameter that was saved under the given name in this user-specific function
by using setParameter(String,Object) method. If no such parameter exists, null is
returned.
Parameters:
name - the name of the parameter
Returns:
parameter that have been stored before with setParameter method or null if there is no
such paramter.

setParameter
voidsetParameter(Stringname,
Objectvalue)
Saves an object under the given name in a container for a user-specific function.
Parameters:
name - the name of the parameter
value - the value to bind to this name

getTrace
AbstractTracegetTrace()
Returns the mapping trace object that can be used to add trace messages.

getGlobalContainer
GlobalContainergetGlobalContainer()
Returns the global container for storing objects shich should be accessable in other user
defined functions.

getInputHeader
InputHeadergetInputHeader()
Returns the access to the message header input parameters, like sender system , receiver
system, etc.

getInputParameters
InputParametersgetInputParameters()
Returns the access to the import parameters which have been defined in the signature tab
of the message mapping editor.

getOutputHeader
OutputHeadergetOutputHeader()
Returns the access to the message header output parameters.

getOutputParameters
OutputParametersgetOutputParameters()
Returns the access to the export parameters which have been defined in the signature tab
of the message mapping editor.

getTransformationParameters
MapgetTransformationParameters()
Deprecated. use getInputParameters() instead
Returns a map with all input parameters. Left for compatibility with old mapping API.

Vous aimerez peut-être aussi