com.ibm.commerce.giftregistry.messaging.programadapter.messagemapper

Class GiftRegistryMessageMapper

  • All Implemented Interfaces:
    MessageMapper


    public class GiftRegistryMessageMapper
    extends MessageMapperGenericImpl
    implements MessageMapper
    A message mapper for parsing the backend XML messages and for converting the parsed XML into a BOD. The BOD will be converted based on the message content.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • SERVICE_NAME_ATTRIBUTE

        public static final java.lang.String SERVICE_NAME_ATTRIBUTE
        The service name a message should invoke
        See Also:
        Constant Field Values
      • STORE_ID_ATTRIBUTE

        public static final java.lang.String STORE_ID_ATTRIBUTE
        The ID of the store to which a message should be applied
        See Also:
        Constant Field Values
      • OBJECT_TYPE

        public static final java.lang.String OBJECT_TYPE
        The type of an object represented by a node
        See Also:
        Constant Field Values
    • Constructor Detail

      • GiftRegistryMessageMapper

        public GiftRegistryMessageMapper()
        Constructor.
    • Method Detail

      • createFromMessage

        public CommandProperty createFromMessage(java.lang.Object message)
        If the request is an instance of java.lang.String, this method calls the parser. The parser converts the backend XML message into the required BOD. Then, it executes the service. The converted BOD is set to the CommandProperty object, which is passed to GiftRegistryServiceInvokerCmd.
        Specified by:
        createFromMessage in interface MessageMapper
        Overrides:
        createFromMessage in class MessageMapperGenericImpl
        Parameters:
        message - A message object.
        Returns:
        A CommandProperty object.
      • init

        public void init(TypedProperty configuration)
        Initializes the message mapper by initializing the message template.
        Specified by:
        init in interface MessageMapper
        Overrides:
        init in class MessageMapperGenericImpl
        Parameters:
        configuration - A TypedProperty object representing a message mapper.