|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayerSourceFactory
A factory for LayerSource
objects.
Method Summary | |
---|---|
boolean |
canProcess(URI provider)
Indicates this FeatureStoreFactory communicate with the indicated provider or service. |
boolean |
canProcess(URI provider,
Map<String,Object> params)
Indicates this FeatureStoreFactory communicate with the indicated provider or service. |
LayerSource |
createLayerSource(URI provider,
Map<String,Object> params)
Ask for a LayerSource connecting to the indicated provider or service. |
LayerSource |
createNewLayerSource(URI provider,
Map<String,Object> params)
Ask for a new LayerSource connecting to the indicated provider or service. |
InternationalString |
getDescription()
Description of this type of FeatureStore. |
InternationalString |
getDisplayName()
Display name used to communicate this type of FeatureStore to end users. |
URI |
getIcon()
Icon representing this category of layer source. |
Map<String,Class> |
getParametersInfo()
Gets an Object array relating to the parameters needed (beyond
the URI) to instantiate a FeatureStore . |
boolean |
isAvailable()
Allows a FeatureStoreFactory to ensure all its preconditions are met,
such as the presense of required libraries. |
Method Detail |
---|
LayerSource createLayerSource(URI provider, Map<String,Object> params) throws IOException, LayerSourceException
LayerSource
connecting to the indicated provider or service.
The returned LayerSource
may 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.
provider
- Often a URI or JDBC URI locating the service to connect to.params
- Map of hints or configuration information.
GraphicStore
connected to the indicated provider or service.
IOException
- if the LayerSource
cannot connect to its source.
LayerException
- if the LayerSource
cannot be created for some other reason.
LayerSourceException
LayerSource createNewLayerSource(URI provider, Map<String,Object> params) throws IOException, LayerSourceException
LayerSource
connecting 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.
provider
- Often a URI or JDBC URI locating the service to connect to.params
- Map of hints or configuration information.
LayerSource
connected to the newly created provider or service.
IOException
- if the LayerSource
cannot connect to its source.
LayerException
- if the LayerSource
cannot be created for some other reason.
LayerSourceException
URI getIcon()
InternationalString getDisplayName()
InternationalString getDescription()
Map<String,Class> getParametersInfo()
Object
array relating to the parameters needed (beyond
the URI) to instantiate a FeatureStore
.
Param
[] based on ISO standards (ISO 19119?).boolean canProcess(URI provider)
FeatureStoreFactory
communicate with the indicated provider or service.
This method should not fail, if a connection needs to be made
to parse a GetCapabilities
file 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 the
getParametersInfo()
method.
provider
- Provider or Server of spatial information.
true
if this factory can communicate with the provider.boolean canProcess(URI provider, Map<String,Object> params)
FeatureStoreFactory
communicate with the indicated provider or service.
This method differs from canProcess(URI)
in that additional configuration
information may be supplied.
provider
- Provider or Server of spatial information.params
- additional configuration information.
true
if this factory can communicate with the provider.boolean isAvailable()
FeatureStoreFactory
to ensure all its preconditions are met,
such as the presense of required libraries.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |