public abstract class AbstractCapabilitiesReader extends AbstractResponseReader<OWSServiceCapabilities>
Base abstract class for reading an OWS server capabilities document. This class instantiates a OWSServiceCapabilities object. Descendants should add their own specific layer capabilities object to the list in OWSServiceCapablities.
Modifier and Type | Field and Description |
---|---|
protected static String |
xmlError |
invalidResp, invalidXML, timeFormat
Constructor and Description |
---|
AbstractCapabilitiesReader() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
readContents(DOMHelper dom,
Element capsElt,
OWSServiceCapabilities serviceCaps) |
protected void |
readOperationsMetadata(DOMHelper dom,
Element capabilitiesElt,
OWSServiceCapabilities serviceCaps)
Read server GET and POST urls for each operation
|
abstract OWSServiceCapabilities |
readXMLResponse(DOMHelper dom,
Element capabilitiesElt)
Reads XML response from the given element and using the given DOMHelper.
|
readXMLResponse
protected static final String xmlError
public abstract OWSServiceCapabilities readXMLResponse(DOMHelper dom, Element capabilitiesElt) throws OWSException
OWSResponseReader
readXMLResponse
in interface OWSResponseReader<OWSServiceCapabilities>
readXMLResponse
in class AbstractResponseReader<OWSServiceCapabilities>
dom
- DOMHelper instance used to read the XML contentcapabilitiesElt
- DOM element corresponding to the root of the requestOWSException
protected abstract void readContents(DOMHelper dom, Element capsElt, OWSServiceCapabilities serviceCaps) throws OWSException
OWSException
protected void readOperationsMetadata(DOMHelper dom, Element capabilitiesElt, OWSServiceCapabilities serviceCaps) throws OWSException
operationMetadataElt
- capabilities
- OWSException
Copyright © 2016 Sensia Software LLC. All rights reserved.