Class WfsSource
java.lang.Object
ddf.catalog.util.impl.DescribableImpl
ddf.catalog.util.impl.MaskableImpl
org.codice.ddf.spatial.ogc.wfs.catalog.common.AbstractWfsSource
org.codice.ddf.spatial.ogc.wfs.v2_0_0.catalog.source.WfsSource
- All Implemented Interfaces:
ddf.catalog.resource.ResourceReader,ddf.catalog.service.ConfiguredService,ddf.catalog.source.ConnectedSource,ddf.catalog.source.FederatedSource,ddf.catalog.source.RemoteSource,ddf.catalog.source.Source,ddf.catalog.util.Describable,ddf.catalog.util.Maskable,org.codice.ddf.platform.services.common.Describable
Provides a Federated and Connected source implementation for OGC WFS servers.
-
Field Summary
FieldsFields inherited from class org.codice.ddf.spatial.ogc.wfs.catalog.common.AbstractWfsSource
CERT_ALIAS_KEY, certAlias, KEYSTORE_PATH_KEY, keystorePath, SSL_PROTOCOL_KEY, sslProtocol -
Constructor Summary
ConstructorsConstructorDescriptionWfsSource(org.codice.ddf.cxf.client.ClientBuilderFactory clientBuilderFactory, ddf.security.encryption.EncryptionService encryptionService, ScheduledExecutorService scheduler) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.opengis.wfs.v_2_0_0.GetFeatureTypebuildGetFeatureRequest(ddf.catalog.operation.Query query) voiddestroy(int code) Set<ddf.catalog.data.ContentType> getId()List<org.codice.ddf.spatial.ogc.wfs.catalog.mapper.MetacardMapper> getOptions(ddf.catalog.data.Metacard metacard) getTitle()voidinit()Init is called when the bundle is initially configured.booleanbooleanisAvailable(ddf.catalog.source.SourceMonitor callback) voidddf.catalog.operation.SourceResponsequery(ddf.catalog.operation.QueryRequest request) voidRefresh is called if the bundle configuration is updated.ddf.catalog.operation.ResourceResponseretrieveResource(URI uri, Map<String, Serializable> arguments) voidsetAuthenticationType(String authenticationType) voidsetConfigurationPid(String configurationPid) voidsetConnectionTimeout(Integer timeout) voidsetContext(org.osgi.framework.BundleContext context) voidsetCoordinateOrder(String coordinateOrder) voidsetDisableCnCheck(Boolean disableCnCheck) voidsetDisableSorting(boolean disableSorting) voidsetFeatureCollectionReader(FeatureCollectionMessageBodyReaderWfs20 featureCollectionMessageBodyReaderWfs20) voidsetFeatureConverterFactoryList(List<org.codice.ddf.spatial.ogc.wfs.v2_0_0.catalog.converter.FeatureConverterFactory> factories) voidsetFilterAdapter(ddf.catalog.filter.FilterAdapter filterAdapter) voidsetFilterDelgates(Map<QName, WfsFilterDelegate> delegates) voidsetForcedFeatureType(String featureType) voidsetForceSpatialFilter(String forceSpatialFilter) voidsetMetacardToFeatureMapper(List<org.codice.ddf.spatial.ogc.wfs.catalog.mapper.MetacardMapper> mappers) voidsetNonQueryableProperties(String[] newNonQueryableProperties) voidsetPassword(String password) voidsetPollInterval(Integer interval) voidsetReceiveTimeout(Integer timeout) voidsetSrsName(String srsName) voidsetUsername(String username) voidMethods inherited from class org.codice.ddf.spatial.ogc.wfs.catalog.common.AbstractWfsSource
getCertAlias, getKeystorePath, getSslProtocol, lookupMetacardAttributeToFeaturePropertyMapper, mapSortByPropertyName, setCertAlias, setKeystorePath, setSslProtocolMethods inherited from class ddf.catalog.util.impl.MaskableImpl
setIdMethods inherited from class ddf.catalog.util.impl.DescribableImpl
setDescription, setOrganization, setShortname, setTitle, setVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ddf.catalog.source.Source
getSecurityAttributes
-
Field Details
-
featureTypeFilters
-
configurationPid
-
-
Constructor Details
-
WfsSource
public WfsSource(org.codice.ddf.cxf.client.ClientBuilderFactory clientBuilderFactory, ddf.security.encryption.EncryptionService encryptionService, ScheduledExecutorService scheduler)
-
-
Method Details
-
init
public void init()Init is called when the bundle is initially configured.The init process creates a RemoteWfs object using the connection parameters from the configuration.
-
destroy
public void destroy(int code) -
refresh
Refresh is called if the bundle configuration is updated.If any of the connection related properties change, an attempt is made to re-connect.
- Parameters:
configuration-
-
isAvailable
public boolean isAvailable() -
isAvailable
public boolean isAvailable(ddf.catalog.source.SourceMonitor callback) -
query
public ddf.catalog.operation.SourceResponse query(ddf.catalog.operation.QueryRequest request) throws ddf.catalog.source.UnsupportedQueryException - Throws:
ddf.catalog.source.UnsupportedQueryException
-
buildGetFeatureRequest
protected net.opengis.wfs.v_2_0_0.GetFeatureType buildGetFeatureRequest(ddf.catalog.operation.Query query) throws ddf.catalog.source.UnsupportedQueryException - Throws:
ddf.catalog.source.UnsupportedQueryException
-
getContentTypes
-
getId
- Specified by:
getIdin interfaceddf.catalog.util.Describable- Specified by:
getIdin interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getIdin classDescribableImpl
-
maskId
- Specified by:
maskIdin interfaceddf.catalog.util.Maskable- Overrides:
maskIdin classMaskableImpl
-
getDescription
- Specified by:
getDescriptionin interfaceddf.catalog.util.Describable- Specified by:
getDescriptionin interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getDescriptionin classDescribableImpl
-
getOrganization
- Specified by:
getOrganizationin interfaceddf.catalog.util.Describable- Specified by:
getOrganizationin interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getOrganizationin classDescribableImpl
-
getTitle
- Specified by:
getTitlein interfaceddf.catalog.util.Describable- Specified by:
getTitlein interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getTitlein classDescribableImpl
-
getVersion
- Specified by:
getVersionin interfaceddf.catalog.util.Describable- Specified by:
getVersionin interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getVersionin classDescribableImpl
-
retrieveResource
public ddf.catalog.operation.ResourceResponse retrieveResource(URI uri, Map<String, Serializable> arguments) -
getSupportedSchemes
-
getOptions
-
getWfsUrl
-
setWfsUrl
-
setAuthenticationType
-
setUsername
-
setPassword
-
setDisableCnCheck
-
setPollInterval
-
getPollInterval
-
setConnectionTimeout
-
getConnectionTimeout
-
setReceiveTimeout
-
getReceiveTimeout
-
setSrsName
-
getSrsName
-
setFilterAdapter
public void setFilterAdapter(ddf.catalog.filter.FilterAdapter filterAdapter) -
setFilterDelgates
-
setContext
public void setContext(org.osgi.framework.BundleContext context) -
setNonQueryableProperties
-
getForceSpatialFilter
-
setForceSpatialFilter
-
setFeatureConverterFactoryList
public void setFeatureConverterFactoryList(List<org.codice.ddf.spatial.ogc.wfs.v2_0_0.catalog.converter.FeatureConverterFactory> factories) -
getMetacardToFeatureMapper
public List<org.codice.ddf.spatial.ogc.wfs.catalog.mapper.MetacardMapper> getMetacardToFeatureMapper() -
setMetacardToFeatureMapper
public void setMetacardToFeatureMapper(List<org.codice.ddf.spatial.ogc.wfs.catalog.mapper.MetacardMapper> mappers) -
setCoordinateOrder
-
setDisableSorting
public void setDisableSorting(boolean disableSorting) -
getConfigurationPid
-
setConfigurationPid
-
getFeatureCollectionReader
-
setFeatureCollectionReader
public void setFeatureCollectionReader(FeatureCollectionMessageBodyReaderWfs20 featureCollectionMessageBodyReaderWfs20) -
setForcedFeatureType
-