public interface OWSResponseWriter<ResponseType extends OWSResponse>
Base interface for all OWS response writers
Modifier and Type | Method and Description |
---|---|
Element |
buildXMLResponse(DOMHelper dom,
ResponseType response)
Builds a DOM element containing the response XML.
Note that the element is not yet appended to any parent. |
Element |
buildXMLResponse(DOMHelper dom,
ResponseType response,
String version)
Builds a DOM element containing the response XML for the given version.
Note that the element is not yet appended to any parent. |
void |
writeXMLResponse(OutputStream os,
ResponseType response)
Writes the XML response directly to the output stream
|
void |
writeXMLResponse(OutputStream os,
ResponseType response,
String version)
Writes the XML response for the desired version directly to the output stream
|
Element buildXMLResponse(DOMHelper dom, ResponseType response) throws OWSException
dom
- DOMHelper instance that will own the generated elementresponse
- response object to serialize as XMLOWSException
Element buildXMLResponse(DOMHelper dom, ResponseType response, String version) throws OWSException
dom
- DOMHelper instance that will own the generated elementresponse
- response object to serialize as XMLversion
- version of writer to useOWSException
void writeXMLResponse(OutputStream os, ResponseType response) throws OWSException
os
- output stream where the XML data will be writtenresponse
- response object to serialize as XMLOWSException
void writeXMLResponse(OutputStream os, ResponseType response, String version) throws OWSException
os
- output stream where the XML data will be writtenresponse
- response object to serialize as XMLversion
- version of writer to useOWSException
Copyright © 2016 Sensia Software LLC. All rights reserved.