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

Class GiftRegistryMessageMapperHelper

  • java.lang.Object
    • com.ibm.commerce.giftregistry.messaging.programadapter.messagemapper.GiftRegistryMessageMapperHelper


  • public class GiftRegistryMessageMapperHelper
    extends java.lang.Object
    This class provides utility methods that converts an inbound gift registry message to the corresponding request object.
    • Field Detail

      • COPYRIGHT

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

      • newInstance

        public static GiftRegistryMessageMapperHelper newInstance(java.lang.String msg)
                                                           throws javax.xml.parsers.ParserConfigurationException,
                                                                  org.xml.sax.SAXException,
                                                                  java.io.IOException
        Creates an instance that handles the given XML message.
        Parameters:
        msg - the message to be processed
        Returns:
        an instance of this class, which will process the passed-in message
        Throws:
        javax.xml.parsers.ParserConfigurationException - if the given XML parser is configured improperly.
        java.io.IOException - if the given message can not be converted into a ByteArrayInputStream
        org.xml.sax.SAXException - if the given message is not an invalid XML message
      • getMessage

        public java.lang.String getMessage()
        Returns:
        the message this message helper will process
      • getMessageDocument

        public org.w3c.dom.Document getMessageDocument()
        Returns:
        the DOM object that represents the message this helper will process
      • getMessageObject

        public BusinessObjectDocument getMessageObject()
        Returns:
        the request object that is corresponding to the given message
      • getServiceName

        public java.lang.String getServiceName()
        Returns:
        the service name that is specified in the message
      • getMessageStoreId

        public java.lang.String getMessageStoreId()
        Returns:
        the storeId an inbound message provides