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
ConstructorsConstructorDescriptionXsdHttpHandler(HTTPClient client) Init with an existing HTTPClient to reuse any configuration. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(URI uri) createInputStream(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.Methods inherited from class URIHandlerImpl
contentDescription, createOutputStream, delete, exists, getAttributes, getRequestedAttributes, getResponse, getTimeout, getURIConverter, setAttributes
-
Constructor Details
-
XsdHttpHandler
Init with an existing HTTPClient to reuse any configuration.
-
-
Method Details
-
canHandle
public boolean canHandle(URI uri) - Specified by:
canHandlein interfaceURIHandler- Overrides:
canHandlein classURIHandlerImpl
-
createInputStream
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.
-