Class Capabilities.CapabilitiesParser

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

    public static final class Capabilities.CapabilitiesParser
    extends org.xml.sax.helpers.DefaultHandler
    A parser for the "capabilities" response XML.
    Since:
    7473
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Capabilities getCapabilities()
      Returns the read capabilities.
      static Capabilities parse​(org.xml.sax.InputSource inputSource)
      Parses and returns capabilities from the given input source.
      void startDocument()  
      void startElement​(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)  
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

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

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

      • startDocument

        public void startDocument()
        Specified by:
        startDocument in interface org.xml.sax.ContentHandler
        Overrides:
        startDocument in class org.xml.sax.helpers.DefaultHandler
      • startElement

        public void startElement​(java.lang.String namespaceURI,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes atts)
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class org.xml.sax.helpers.DefaultHandler
      • parse

        public static Capabilities parse​(org.xml.sax.InputSource inputSource)
                                  throws org.xml.sax.SAXException,
                                         java.io.IOException,
                                         javax.xml.parsers.ParserConfigurationException
        Parses and returns capabilities from the given input source.
        Parameters:
        inputSource - The input source to read capabilities from
        Returns:
        the capabilities
        Throws:
        org.xml.sax.SAXException - if any SAX errors occur during processing
        java.io.IOException - if any I/O errors occur
        javax.xml.parsers.ParserConfigurationException - if a parser cannot be created