Interface LayerSourceFactory
-
public interface LayerSourceFactoryA factory forLayerSourceobjects.- Since:
- GeoAPI 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleancanProcess(java.net.URI provider)Indicates thisFeatureStoreFactorycommunicate with the indicated provider or service.booleancanProcess(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params)Indicates thisFeatureStoreFactorycommunicate with the indicated provider or service.LayerSourcecreateLayerSource(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params)Ask for aLayerSourceconnecting to the indicated provider or service.LayerSourcecreateNewLayerSource(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params)Ask for a newLayerSourceconnecting to the indicated provider or service.InternationalStringgetDescription()Description of this type of FeatureStore.InternationalStringgetDisplayName()Display name used to communicate this type of FeatureStore to end users.java.net.URIgetIcon()Icon representing this category of layer source.java.util.Map<java.lang.String,java.lang.Class>getParametersInfo()Gets anObjectarray relating to the parameters needed (beyond the URI) to instantiate aFeatureStore.booleanisAvailable()Allows aFeatureStoreFactoryto ensure all its preconditions are met, such as the presense of required libraries.
-
-
-
Method Detail
-
createLayerSource
LayerSource createLayerSource(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException, LayerSourceException
Ask for aLayerSourceconnecting to the indicated provider or service. The returnedLayerSourcemay have been previously cached.Additional hints or configuration information may be provided according to the metadata indicated by
getParametersInfo(). This information often includes security information such as username and password.- Parameters:
provider- Often a URI or JDBC URI locating the service to connect to.params- Map of hints or configuration information.- Returns:
GraphicStoreconnected to the indicated provider or service.- Throws:
java.io.IOException- if theLayerSourcecannot connect to its source.LayerException- if theLayerSourcecannot be created for some other reason.LayerSourceException
-
createNewLayerSource
LayerSource createNewLayerSource(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException, LayerSourceException
Ask for a newLayerSourceconnecting to the indicated provider or service.Additional hints or configuration information may be provided according to the metadata indicated by
getParametersInfo(). This information often includes security information such as username and password.- Parameters:
provider- Often a URI or JDBC URI locating the service to connect to.params- Map of hints or configuration information.- Returns:
LayerSourceconnected to the newly created provider or service.- Throws:
java.io.IOException- if theLayerSourcecannot connect to its source.LayerException- if theLayerSourcecannot be created for some other reason.LayerSourceException
-
getIcon
java.net.URI getIcon()
Icon representing this category of layer source.- Returns:
- URI to a icon (GIF or PNG) representing this factory.
-
getDisplayName
InternationalString getDisplayName()
Display name used to communicate this type of FeatureStore to end users.
-
getDescription
InternationalString getDescription()
Description of this type of FeatureStore.
-
getParametersInfo
java.util.Map<java.lang.String,java.lang.Class> getParametersInfo()
Gets anObjectarray relating to the parameters needed (beyond the URI) to instantiate aFeatureStore.
-
canProcess
boolean canProcess(java.net.URI provider)
Indicates thisFeatureStoreFactorycommunicate with the indicated provider or service.This method should not fail, if a connection needs to be made to parse a
GetCapabilitiesfile or negotiate WMS versions any IO problems simply indicate the inabiity to process.This method may be considered the same as:
canProcess(provider, hints)where hints was generated by using all the default values specified by thegetParametersInfo()method.- Parameters:
provider- Provider or Server of spatial information.- Returns:
trueif this factory can communicate with the provider.
-
canProcess
boolean canProcess(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params)Indicates thisFeatureStoreFactorycommunicate with the indicated provider or service.This method differs from
canProcess(URI)in that additional configuration information may be supplied.- Parameters:
provider- Provider or Server of spatial information.params- additional configuration information.- Returns:
trueif this factory can communicate with the provider.
-
isAvailable
boolean isAvailable()
Allows aFeatureStoreFactoryto ensure all its preconditions are met, such as the presense of required libraries.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG