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;
}
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;
}
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);
}
Aggregations