Class XsdHttpHandler
- Object
-
- URIHandlerImpl
-
- XsdHttpHandler
-
- All Implemented Interfaces:
URIHandler
public class XsdHttpHandler extends URIHandlerImplHandling 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 Summary
Constructors Constructor Description XsdHttpHandler(HTTPClient client)Init with an existing HTTPClient to reuse any configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(URI uri)InputStreamcreateInputStream(URI uri, Map<?,?> options)Creates an input stream for the URI, assuming it's a URL, and returns it.voiddispose()Disposing any HTTPResponse objects created during 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:
canHandlein interfaceURIHandler- Overrides:
canHandlein classURIHandlerImpl
-
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:
createInputStreamin interfaceURIHandler- Overrides:
createInputStreamin classURIHandlerImpl- 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.
-
-