Class URLNotificationParser

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public class URLNotificationParser
    extends SAXAdapter
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected URLNotificationParser()
      Construct a URLNotificationParser.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      URLNotification getNotification()  
      void onStartElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
      SAXAdapter start element handler.
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

      • URLNotificationParser

        protected URLNotificationParser()
        Construct a URLNotificationParser. This class is not intended to be instantiated directly. Instead, use the static URLNotification.parse method.
    • Method Detail

      • getNotification

        public URLNotification getNotification()
        Returns:
        the parsed notification
      • onStartElement

        public void onStartElement​(java.lang.String uri,
                                   java.lang.String localName,
                                   java.lang.String qName,
                                   org.xml.sax.Attributes attributes)
                            throws org.xml.sax.SAXException
        SAXAdapter start element handler.
        Overrides:
        onStartElement in class SAXAdapter
        Parameters:
        uri - element uri.
        localName - element localName.
        qName - element qName.
        attributes - element attributes.
        Throws:
        org.xml.sax.SAXException - if there is an error.