com.sap.aii.af.service.headermapping

Class HeaderMapper

java.lang.Object
  extended by com.sap.aii.af.service.headermapping.HeaderMapper

public final class HeaderMapper
extends Object

Service for message header mapping within adapter framework


Field Summary
static Short FROM_PARTY
           
static Short FROM_SERVICE
           
static Short TO_PARTY
           
static Short TO_SERVICE
           
 
Constructor Summary
HeaderMapper()
           
 
Method Summary
static Map getMappedHeader(Message message, Binding binding)
          Returns a Map of key-value-pairs where each key is one of the constants FROM_PARTY, FROM_SERVICE, TO_PARTY, TO_SERVICE and the value is the one to which the respective header field should be mapped If the Map is empty no mapping is required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM_PARTY

public static final Short FROM_PARTY

FROM_SERVICE

public static final Short FROM_SERVICE

TO_PARTY

public static final Short TO_PARTY

TO_SERVICE

public static final Short TO_SERVICE
Constructor Detail

HeaderMapper

public HeaderMapper()
Method Detail

getMappedHeader

public static final Map getMappedHeader(Message message,
                                        Binding binding)
                                 throws HeaderMappingException
Returns a Map of key-value-pairs where each key is one of the constants FROM_PARTY, FROM_SERVICE, TO_PARTY, TO_SERVICE and the value is the one to which the respective header field should be mapped If the Map is empty no mapping is required. The mapping values are determined according to the respective header mapping rules as configured in the corresponding receiver agreement defined in the Integration Directory.

Parameters:
message - Message the header of which requires the mapping
binding - Binding corresponding to the above receiver agreement
Returns:
map Map containing the header fields which require a mapping along with their target value
Throws:
HeaderMappingException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.af.svc.facade api BC-XI


Copyright 2014 SAP AG Complete Copyright Notice