Class AbstractMxConnMode

    • Constructor Detail

      • AbstractMxConnMode

        public AbstractMxConnMode​(MxConnConfiguration cfg,
                                  Log log)
        Constructs an AbstractMxConnMode.
        Parameters:
        cfg - the connector configuration object
        log - logger of the connector
    • Method Detail

      • getCfg

        protected final MxConnConfiguration getCfg()
        Returns the connector configuration object.
        Returns:
        connector configuration object
      • post

        protected final java.lang.String post​(TemplateLoader tlp,
                                              java.util.List<java.lang.String> enterpriseServiceUrlList)
                                       throws MxConnectorException
        Posts the message extracted from the specified template to the given Maximo Enterprise Service. Before posting the message, some common properties are defined in the template, such as creation.date.time, message.id, and maximo.version.
        Parameters:
        tlp - template from which the message will be extracted and posted
        enterpriseServiceUrlList - list of Maximo enterprise service URLs that will handle the message
        Returns:
        the response sent back by the Maximo Enterprise Service
        Throws:
        MxConnectorException - if any sort of communication problem occurs
        See Also:
        setMessageId(String)
      • setCreation

        protected final void setCreation​(long creation)
        Defines the creation date/time to be set before posting a message. If no date/time is defined, the current date/time is used.
        Parameters:
        creation - creation date/time to be set before posting a message, expressed as milliseconds
        See Also:
        post(TemplateLoader, List)
      • setMessageId

        protected final void setMessageId​(java.lang.String messageId)
        Defines the message ID to be set before posting a message. If no message ID is defined, the current date/time expressed as milliseconds is used. Note: Not used
        Parameters:
        messageId - message ID to be set before posting the message
        See Also:
        post(TemplateLoader, List)