use of net.opengis.sos.x20.GetResultTemplateResponseType in project arctic-sea by 52North.
the class SosDecoderv20 method parseGetResultTemplateResponse.
private OwsServiceResponse parseGetResultTemplateResponse(final GetResultTemplateResponseDocument getResultTemplateResponseDoc) throws DecodingException {
final GetResultTemplateResponse sosGetResultTemplateResponse = new GetResultTemplateResponse();
final GetResultTemplateResponseType getResultTemplateResponse = getResultTemplateResponseDoc.getGetResultTemplateResponse();
final SosResultEncoding resultEncoding = parseResultEncoding(getResultTemplateResponse.getResultEncoding().getAbstractEncoding());
final SosResultStructure resultStructure = parseResultStructure(getResultTemplateResponse.getResultStructure().getAbstractDataComponent());
sosGetResultTemplateResponse.setResultEncoding(resultEncoding);
sosGetResultTemplateResponse.setResultStructure(resultStructure);
return sosGetResultTemplateResponse;
}
use of net.opengis.sos.x20.GetResultTemplateResponseType in project arctic-sea by 52North.
the class GetResultTemplateResponseEncoder method create.
@Override
protected XmlObject create(GetResultTemplateResponse response) throws EncodingException {
GetResultTemplateResponseDocument doc = GetResultTemplateResponseDocument.Factory.newInstance(getXmlOptions());
GetResultTemplateResponseType xbResponse = doc.addNewGetResultTemplateResponse();
xbResponse.setResultEncoding(createResultEncoding(response.getResultEncoding()));
xbResponse.setResultStructure(createResultStructure(response.getResultStructure()));
return doc;
}
Aggregations