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.
-
-
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 boolean
canHandle(URI uri)
InputStream
createInputStream(URI uri, Map<?,?> options)
Creates an input stream for the URI, assuming it's a URL, and returns it.void
dispose()
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:
canHandle
in interfaceURIHandler
- Overrides:
canHandle
in 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:
createInputStream
in interfaceURIHandler
- Overrides:
createInputStream
in 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.
-
-