use of net.opengis.sos.x20.InsertObservationResponseType in project arctic-sea by 52North.
the class InsertObservationResponseV20Decoder method decode.
@Override
public InsertObservationResponse decode(XmlObject xmlObject) throws DecodingException {
LOGGER.debug("REQUESTTYPE: {}", xmlObject != null ? xmlObject.getClass() : "null recevied");
if (!(xmlObject instanceof InsertObservationResponseDocument)) {
throw new UnsupportedDecoderInputException(this, xmlObject);
}
InsertObservationResponseType isr = ((InsertObservationResponseDocument) xmlObject).getInsertObservationResponse();
if (isr == null) {
throw new DecodingException("Received XML document is not valid. Set log level to debug to get more details");
}
return new InsertObservationResponse();
}
Aggregations