use of net.opengis.sos.x20.GetResultResponseDocument in project arctic-sea by 52North.
the class SosDecoderv20 method parseGetResultResponse.
private OwsServiceResponse parseGetResultResponse(final GetResultResponseDocument getResultResponseDoc) throws DecodingException {
final GetResultResponse sosGetResultResponse = new GetResultResponse();
final GetResultResponseType getResultResponse = getResultResponseDoc.getGetResultResponse();
final String resultValues = parseResultValues(getResultResponse.getResultValues());
sosGetResultResponse.setResultValues(resultValues);
return sosGetResultResponse;
}
use of net.opengis.sos.x20.GetResultResponseDocument in project arctic-sea by 52North.
the class GetResultResponseEncoder method create.
@Override
protected XmlObject create(GetResultResponse response) throws EncodingException {
GetResultResponseDocument doc = GetResultResponseDocument.Factory.newInstance(getXmlOptions());
GetResultResponseType gtr = doc.addNewGetResultResponse();
XmlObject resultValues = gtr.addNewResultValues();
if (response.hasResultValues()) {
XmlString xmlString = XmlString.Factory.newInstance();
xmlString.setStringValue(response.getResultValues());
resultValues.set(xmlString);
}
return doc;
}
Aggregations