use of org.n52.svalbard.encode.SchemaAwareEncoder in project arctic-sea by 52North.
the class Soap12XmlStreamWriter method getSchemaLocation.
protected Set<SchemaLocation> getSchemaLocation() throws EncodingException, XMLStreamException {
SoapResponse response = getElement();
Set<SchemaLocation> schemaLocations = Sets.newHashSet();
schemaLocations.add(SoapConstants.SOAP_12_SCHEMA_LOCATION);
if (response.isSetBodyContent()) {
Encoder<Object, OwsServiceResponse> encoder = getEncoder(response.getBodyContent());
if (encoder != null && encoder instanceof SchemaAwareEncoder) {
schemaLocations.addAll(((SchemaAwareEncoder<?, ?>) encoder).getSchemaLocations());
}
}
return schemaLocations;
}
Aggregations