Class XsdHttpHandler

Object
URIHandlerImpl
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.

  • Field Summary

    Fields inherited from interface URIHandler

    DEFAULT_HANDLERS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Init with an existing HTTPClient to reuse any configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(URI uri)
     
    createInputStream(URI uri, Map<?,?> options)
    Creates an input stream for the URI, assuming it's a URL, and returns it.
    void
    Disposing any HTTPResponse objects created during parsing.

    Methods inherited from class URIHandlerImpl

    contentDescription, createOutputStream, delete, exists, getAttributes, getRequestedAttributes, getResponse, getTimeout, getURIConverter, setAttributes

    Methods inherited from class Object

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

    • XsdHttpHandler

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

    • 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.