Class XsdHttpHandler

  • All Implemented Interfaces:
    URIHandler

    public class XsdHttpHandler
    extends URIHandlerImpl
    Handling url's in XSD documents with the same HTTP client as the WFS. Makes sure to reuse any http configuration.

    Used in conjunction with PullParser. PullParser.setURIHandler(URIHandler)

    Call dispose() after parsing.

    • Constructor Detail

      • XsdHttpHandler

        public XsdHttpHandler​(HTTPClient client)
        Init with an existing HTTPClient to reuse any configuration.
    • Method Detail

      • canHandle

        public boolean canHandle​(URI uri)
        Specified by:
        canHandle in interface URIHandler
        Overrides:
        canHandle in class URIHandlerImpl
      • createInputStream

        public InputStream createInputStream​(URI uri,
                                             Map<?,​?> options)
                                      throws IOException
        Creates an input stream for the URI, assuming it's a URL, and returns it.
        Specified by:
        createInputStream in interface URIHandler
        Overrides:
        createInputStream in class URIHandlerImpl
        Returns:
        an open input stream.
        Throws:
        IOException - if there is a problem obtaining an open input stream.
      • dispose

        public void dispose()
        Disposing any HTTPResponse objects created during parsing.