psdi.iface.router

Class HTTPMaximoExit

  • All Implemented Interfaces:
    HTTPExit


    public class HTTPMaximoExit
    extends DefaultHTTPExit
    Exit for Maximo t Maximo to append Object Structure name to the URL
    • Constructor Summary

      Constructors 
      Constructor and Description
      HTTPMaximoExit()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map getHeaderProperties(java.util.Map metaData, byte[] data, java.util.Map httpInfo) 
      java.lang.String getURL(java.util.Map metaData, byte[] data, java.util.Map httpInfo) 
      java.util.Map getURLProperties(java.util.Map metaData, byte[] data, java.util.Map httpInfo) 
      byte[] processResponseData(int responseCode, java.lang.String responseMsg, byte[] msgBodyData)
      Process Responnse from HTTP Post
      java.util.Map transformPayloadToFormData(java.util.Map metaData, byte[] data, java.util.Map destinationMap) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HTTPMaximoExit

        public HTTPMaximoExit()
        Constructor
    • Method Detail

      • getURL

        public java.lang.String getURL(java.util.Map metaData,
                                       byte[] data,
                                       java.util.Map httpInfo)
        Specified by:
        getURL in interface HTTPExit
        Overrides:
        getURL in class DefaultHTTPExit
        Returns:
        the URL
      • getURLProperties

        public java.util.Map getURLProperties(java.util.Map metaData,
                                              byte[] data,
                                              java.util.Map httpInfo)
        Specified by:
        getURLProperties in interface HTTPExit
        Overrides:
        getURLProperties in class DefaultHTTPExit
        Parameters:
        metaData - Information of the message
        data - The xml transaction data in byte array
        httpInfo - Map having httpInfo properties
        Returns:
        the properties [name/value pair] which are added to the URL using ?propname=propvalue&..
      • getHeaderProperties

        public java.util.Map getHeaderProperties(java.util.Map metaData,
                                                 byte[] data,
                                                 java.util.Map httpInfo)
        Specified by:
        getHeaderProperties in interface HTTPExit
        Overrides:
        getHeaderProperties in class DefaultHTTPExit
        Parameters:
        metaData - Information of the message
        data - The xml transaction data in byte array
        httpInfo - Map having httpInfo properties
        Returns:
        the HTTP header properties [name/value pair].
      • transformPayloadToFormData

        public java.util.Map transformPayloadToFormData(java.util.Map metaData,
                                                        byte[] data,
                                                        java.util.Map destinationMap)
        Specified by:
        transformPayloadToFormData in interface HTTPExit
        Overrides:
        transformPayloadToFormData in class DefaultHTTPExit
        Parameters:
        metaData - Information of the message
        data - The xml transaction data in byte array
        httpInfo - Map having httpInfo properties
        Returns:
        the payload properties [name/value pair].
      • processResponseData

        public byte[] processResponseData(int responseCode,
                                          java.lang.String responseMsg,
                                          byte[] msgBodyData)
                                   throws MXException
        Process Responnse from HTTP Post
        Specified by:
        processResponseData in interface HTTPExit
        Overrides:
        processResponseData in class DefaultHTTPExit
        Parameters:
        responseCode - Responnse code from HTTP Post
        responseMsg - Response message from HTTP Post.
        msgBodyData - - byte array of the data.
        Throws:
        MXException