Class URLNotificationXMLConverter


  • public class URLNotificationXMLConverter
    extends java.lang.Object
    • Field Detail

      • PRODUCT_XML_NAMESPACE

        public static final java.lang.String PRODUCT_XML_NAMESPACE
        Namespace for product XML
        See Also:
        Constant Field Values
      • NOTIFICATION_ELEMENT

        public static final java.lang.String NOTIFICATION_ELEMENT
        static var for notification element
        See Also:
        Constant Field Values
      • ATTRIBUTE_PRODUCT_ID

        public static final java.lang.String ATTRIBUTE_PRODUCT_ID
        attribute for product id
        See Also:
        Constant Field Values
      • ATTRIBUTE_PRODUCT_UPDATED

        public static final java.lang.String ATTRIBUTE_PRODUCT_UPDATED
        attribute for updated
        See Also:
        Constant Field Values
      • ATTRIBUTE_TRACKER_URL

        public static final java.lang.String ATTRIBUTE_TRACKER_URL
        attribute for trackerURL
        See Also:
        Constant Field Values
      • ATTRIBUTE_EXPIRES

        public static final java.lang.String ATTRIBUTE_EXPIRES
        attribute for expires
        See Also:
        Constant Field Values
      • ATTRIBUTE_URL

        public static final java.lang.String ATTRIBUTE_URL
        attribute for url
        See Also:
        Constant Field Values
    • Constructor Detail

      • URLNotificationXMLConverter

        public URLNotificationXMLConverter()
    • Method Detail

      • toXML

        public static java.lang.String toXML​(URLNotification notification)
        Converts a URLNotification to XML
        Parameters:
        notification - The URLNotification to be converted
        Returns:
        an XML-formatted string
      • parseXML

        public static URLNotification parseXML​(java.io.InputStream message)
                                        throws java.lang.Exception
        Parses an XML message into a URLNotification
        Parameters:
        message - The convertee
        Returns:
        A parsed URL notification
        Throws:
        java.lang.Exception - If parse goes wrong