public abstract class AbstractResponseReader<ResponseType extends OWSResponse> extends Object implements OWSResponseReader<ResponseType>
Provides methods to parse an XML OWS response and create an OWSResponse object
Modifier and Type | Field and Description |
---|---|
protected static String |
invalidResp |
protected static String |
invalidXML |
protected DateTimeFormat |
timeFormat |
Constructor and Description |
---|
AbstractResponseReader() |
Modifier and Type | Method and Description |
---|---|
abstract ResponseType |
readXMLResponse(DOMHelper domHelper,
Element responseElt)
Reads XML response from the given element and using the given DOMHelper.
|
ResponseType |
readXMLResponse(InputStream input) |
protected static final String invalidResp
protected static final String invalidXML
protected DateTimeFormat timeFormat
public abstract ResponseType readXMLResponse(DOMHelper domHelper, Element responseElt) throws OWSException
OWSResponseReader
readXMLResponse
in interface OWSResponseReader<ResponseType extends OWSResponse>
domHelper
- DOMHelper instance used to read the XML contentresponseElt
- DOM element corresponding to the root of the requestOWSException
public ResponseType readXMLResponse(InputStream input) throws OWSException
OWSException
Copyright © 2016 Sensia Software LLC. All rights reserved.