Search in sources :

Example 6 with GetCapabilitiesResponse

use of org.n52.shetland.ogc.ows.service.GetCapabilitiesResponse in project arctic-sea by 52North.

the class GetCapabilitiesResponseEncoderTest method badCapabilities.

private GetCapabilitiesResponse badCapabilities() {
    GetCapabilitiesResponse response = new GetCapabilitiesResponse();
    response.setService("SOS");
    response.setVersion("2.0.0");
    response.setXmlString("BAD XML STRING");
    return response;
}
Also used : GetCapabilitiesResponse(org.n52.shetland.ogc.ows.service.GetCapabilitiesResponse)

Example 7 with GetCapabilitiesResponse

use of org.n52.shetland.ogc.ows.service.GetCapabilitiesResponse in project arctic-sea by 52North.

the class GetCapabilitiesResponseEncoderTest method minimalCapabilities.

private GetCapabilitiesResponse minimalCapabilities() {
    GetCapabilitiesResponse response = new GetCapabilitiesResponse();
    response.setService("SOS");
    response.setVersion("2.0.0");
    response.setXmlString("<sos:Capabilities version=\"2.0.0\" xmlns:sos=\"http://www.opengis.net/sos/2.0\" " + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + "xsi:schemaLocation=\"http://www.opengis.net/sos/2.0 http://schemas.opengis.net/sos/2.0/sosGetCapabilities.xsd\"/>");
    return response;
}
Also used : GetCapabilitiesResponse(org.n52.shetland.ogc.ows.service.GetCapabilitiesResponse)

Example 8 with GetCapabilitiesResponse

use of org.n52.shetland.ogc.ows.service.GetCapabilitiesResponse in project arctic-sea by 52North.

the class CapabilitiesDocumentDecoder method decode.

@Override
@SuppressFBWarnings("NP_LOAD_OF_KNOWN_NULL_VALUE")
public GetCapabilitiesResponse decode(CapabilitiesDocument cd) throws DecodingException {
    if (cd != null) {
        GetCapabilitiesResponse response = new GetCapabilitiesResponse();
        OwsCapabilities capabilities = (OwsCapabilities) decodeXmlObject(cd.getCapabilities());
        response.setCapabilities(capabilities);
        return response;
    }
    throw new UnsupportedDecoderInputException(this, cd);
}
Also used : GetCapabilitiesResponse(org.n52.shetland.ogc.ows.service.GetCapabilitiesResponse) OwsCapabilities(org.n52.shetland.ogc.ows.OwsCapabilities) UnsupportedDecoderInputException(org.n52.svalbard.decode.exception.UnsupportedDecoderInputException) SuppressFBWarnings(edu.umd.cs.findbugs.annotations.SuppressFBWarnings)

Aggregations

GetCapabilitiesResponse (org.n52.shetland.ogc.ows.service.GetCapabilitiesResponse)5 SosCapabilities (org.n52.shetland.ogc.sos.SosCapabilities)3 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)2 OwsCapabilities (org.n52.shetland.ogc.ows.OwsCapabilities)2 UnsupportedDecoderInputException (org.n52.svalbard.decode.exception.UnsupportedDecoderInputException)2 CapabilitiesDocument (net.opengis.sos.x10.CapabilitiesDocument)1 Capabilities (net.opengis.sos.x10.CapabilitiesDocument.Capabilities)1 FilterCapabilities (net.opengis.sos.x10.FilterCapabilitiesDocument.FilterCapabilities)1 CapabilitiesDocument (net.opengis.sos.x20.CapabilitiesDocument)1 CapabilitiesType (net.opengis.sos.x20.CapabilitiesType)1 InsertionCapabilitiesDocument (net.opengis.sos.x20.InsertionCapabilitiesDocument)1 InsertionCapabilitiesType (net.opengis.sos.x20.InsertionCapabilitiesType)1 XmlException (org.apache.xmlbeans.XmlException)1 EncodingException (org.n52.svalbard.encode.exception.EncodingException)1