Search in sources :

Example 1 with DeleteSensorDocument

use of net.opengis.swes.x20.DeleteSensorDocument in project arctic-sea by 52North.

the class SwesDecoderv20 method decode.

@Override
public OwsServiceRequest decode(XmlObject xmlObject) throws DecodingException {
    LOGGER.debug("REQUESTTYPE:" + xmlObject.getClass());
    XmlHelper.validateDocument(xmlObject);
    if (xmlObject instanceof DescribeSensorDocument) {
        return parseDescribeSensor((DescribeSensorDocument) xmlObject);
    } else if (xmlObject instanceof InsertSensorDocument) {
        return parseInsertSensor((InsertSensorDocument) xmlObject);
    } else if (xmlObject instanceof UpdateSensorDescriptionDocument) {
        return parseUpdateSensorDescription((UpdateSensorDescriptionDocument) xmlObject);
    } else if (xmlObject instanceof DeleteSensorDocument) {
        return parseDeleteSensor((DeleteSensorDocument) xmlObject);
    } else {
        throw new UnsupportedDecoderXmlInputException(this, xmlObject);
    }
}
Also used : InsertSensorDocument(net.opengis.swes.x20.InsertSensorDocument) DeleteSensorDocument(net.opengis.swes.x20.DeleteSensorDocument) DescribeSensorDocument(net.opengis.swes.x20.DescribeSensorDocument) UnsupportedDecoderXmlInputException(org.n52.svalbard.decode.exception.UnsupportedDecoderXmlInputException) UpdateSensorDescriptionDocument(net.opengis.swes.x20.UpdateSensorDescriptionDocument)

Example 2 with DeleteSensorDocument

use of net.opengis.swes.x20.DeleteSensorDocument in project arctic-sea by 52North.

the class SwesDecoderv20 method parseDeleteSensor.

private OwsServiceRequest parseDeleteSensor(final DeleteSensorDocument xbDelSenDoc) throws DecodingException {
    final DeleteSensorRequest request = new DeleteSensorRequest();
    DeleteSensorType deleteSensor = xbDelSenDoc.getDeleteSensor();
    request.setService(deleteSensor.getService());
    request.setVersion(deleteSensor.getVersion());
    request.setProcedureIdentifier(deleteSensor.getProcedure());
    // extensions
    request.setExtensions(parseExtensibleRequest(deleteSensor));
    return request;
}
Also used : DeleteSensorRequest(org.n52.shetland.ogc.sos.request.DeleteSensorRequest) DeleteSensorType(net.opengis.swes.x20.DeleteSensorType)

Aggregations

DeleteSensorDocument (net.opengis.swes.x20.DeleteSensorDocument)1 DeleteSensorType (net.opengis.swes.x20.DeleteSensorType)1 DescribeSensorDocument (net.opengis.swes.x20.DescribeSensorDocument)1 InsertSensorDocument (net.opengis.swes.x20.InsertSensorDocument)1 UpdateSensorDescriptionDocument (net.opengis.swes.x20.UpdateSensorDescriptionDocument)1 DeleteSensorRequest (org.n52.shetland.ogc.sos.request.DeleteSensorRequest)1 UnsupportedDecoderXmlInputException (org.n52.svalbard.decode.exception.UnsupportedDecoderXmlInputException)1