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

Class GiftRegistryNewTagTypeHandler

  • java.lang.Object
    • com.ibm.commerce.giftregistry.messaging.programadapter.messagemapper.GiftRegistryNewTagTypeHandler
  • All Implemented Interfaces:
    NodeHandler


    public class GiftRegistryNewTagTypeHandler
    extends java.lang.Object
    implements NodeHandler
    The handler that handles all the customized message mappings. This handler throws an ECSystemException with the key _DBG_CMD_MIG_NOT_IMPLEMENTED. The cause of the exception will be UnsupportedOperationException. By default, the IBM Gift Center will use this handler for any unrecognized
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String CLASS_NAME
      Class name
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object handle(java.lang.Object parent, java.lang.Object currentNode, java.lang.Object[] params)
      Default implementation of the tags that are not recognized.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String CLASS_NAME
        Class name
    • Constructor Detail

      • GiftRegistryNewTagTypeHandler

        public GiftRegistryNewTagTypeHandler()
    • Method Detail

      • handle

        public java.lang.Object handle(java.lang.Object parent,
                                       java.lang.Object currentNode,
                                       java.lang.Object[] params)
                                throws java.lang.Exception
        Default implementation of the tags that are not recognized. An ECSystemException will be thrown when such new tag is encountered. Overwrite this method to handle any new tags.
        Specified by:
        handle in interface NodeHandler
        Parameters:
        parent - the result object from processing the parent node of the given current node
        currentNode - the node to be processed
        params - any parameters needed by the handler
        Returns:
        the result from processing the currentNode
        Throws:
        java.lang.Exception - if the processing fails
        See Also:
        com.ibm.commerce.giftregistry.messaging.NodeHandler#handle(java.lang.Object, java.lang.Object, java.lang.Object[])