use of net.opengis.wfs.v_2_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 net.opengis.wfs.v_2_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 net.opengis.wfs.v_2_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);
buildFeatureFilters(featureTypes, capabilities.getFilterCapabilities());
} else {
LOGGER.debug("WfsSource {}: WFS Server did not return any capabilities.", getId());
}
}
use of net.opengis.wfs.v_2_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;
}
Aggregations