use of ogc.schema.opengis.wfs_capabilities.v_1_0_0.WFSCapabilitiesType in project ddf by codice.
the class WfsSource method configureWfsFeatures.
private void configureWfsFeatures() {
WFSCapabilitiesType capabilities = getCapabilities();
if (capabilities != null) {
wfsVersion = capabilities.getVersion();
List<FeatureTypeType> featureTypes = getFeatureTypes(capabilities);
List<String> supportedSpatialOperators = getSupportedSpatialOperators(capabilities);
List<QName> supportedGeometryOperands = getSupportedGeometryOperators(capabilities);
buildFeatureFilters(featureTypes, supportedSpatialOperators, supportedGeometryOperands);
} else {
LOGGER.info("WfsSource {}: WFS Server did not return any capabilities.", getId());
}
}
use of ogc.schema.opengis.wfs_capabilities.v_1_0_0.WFSCapabilitiesType in project ddf by codice.
the class WfsSource method getCapabilities.
private WFSCapabilitiesType getCapabilities() throws SecurityServiceException {
WFSCapabilitiesType capabilities = null;
Wfs wfs = factory.getClient();
try {
capabilities = wfs.getCapabilities(new GetCapabilitiesRequest());
} catch (WfsException wfse) {
LOGGER.info(WFS_ERROR_MESSAGE + " Received HTTP code '{}' from server for source with id='{}'", wfse.getHttpStatus(), getId());
LOGGER.debug(WFS_ERROR_MESSAGE, wfse);
} catch (WebApplicationException wae) {
LOGGER.debug(handleWebApplicationException(wae), wae);
} catch (Exception e) {
handleClientException(e);
}
return capabilities;
}
use of ogc.schema.opengis.wfs_capabilities.v_1_0_0.WFSCapabilitiesType in project ddf by codice.
the class WfsSource method configureWfsFeatures.
private void configureWfsFeatures() throws SecurityServiceException {
WFSCapabilitiesType capabilities = getCapabilities();
if (capabilities != null) {
wfsVersion = capabilities.getVersion();
List<FeatureTypeType> featureTypes = getFeatureTypes(capabilities);
List<String> supportedGeo = getSupportedGeo(capabilities);
buildFeatureFilters(featureTypes, supportedGeo);
} else {
LOGGER.info("WfsSource {}: WFS Server did not return any capabilities.", getId());
}
}
use of ogc.schema.opengis.wfs_capabilities.v_1_0_0.WFSCapabilitiesType in project geo-platform by geosdi.
the class WFSGetCapabilitiesTest method testV110.
@Test
public void testV110() throws Exception {
WFSGetCapabilitiesRequest<WFSCapabilitiesType> request = this.serverConnector.createGetCapabilitiesRequest();
String responseAsString = request.formatResponseAsString(2);
logger.info("WFS_110 GetCapabilities @@@@@@@@@@@@@@@@@@@@@@@ \n{}\n", responseAsString);
try (BufferedWriter writer = Files.newBufferedWriter(Paths.get("target/wfsGetCapabilitiesv110.xml"))) {
writer.write(responseAsString);
}
}
Aggregations