| org.geotools.catalog.ServiceFactory
All known Subclasses: org.geotools.catalog.property.PropertyServiceFactory, org.geotools.catalog.DataStoreFactoryServiceFactory, org.geotools.catalog.shapefile.ShapefileServiceFactory, org.geotools.catalog.wfs.WFSServiceFactory, org.geotools.catalog.wms.WMSServiceFactory, org.geotools.catalog.postgis.PostGISServiceFactory, org.geotools.catalog.styling.SLDServiceFactory,
ServiceFactory | public interface ServiceFactory (Code) | | This is the required addition on the part of a data provider. We also use
this interface internally, so look in this plugin for examples.
author: David Zwiers, Refractions Research since: 0.6 |
Method Summary | |
boolean | canProcess(URI uri) Determines if the ServiceExtension can process the specified uri and use
it to create a set of connection paramters.
Parameters: uri - The uri representing the service. | Map | createParams(URI uri) The primary intention is for drag 'n' drop. | Service | createService(Catalog parent, URI id, Map params) Creates an IService based on the params provided. |
canProcess | boolean canProcess(URI uri)(Code) | | Determines if the ServiceExtension can process the specified uri and use
it to create a set of connection paramters.
Parameters: uri - The uri representing the service. true if the uri can be processed, otherwise false. |
createParams | Map createParams(URI uri)(Code) | | The primary intention is for drag 'n' drop. This generates a set of
params for the given URL ... in most cases this will be passed to the
createService method. It is important to note that this method must
inspect the url to determine if it can be used to create the service.
If it cannot, null must be returned.
Parameters: uri - The potential source of params. Map of params to be used for creation, null if the URL cannot beused. |
createService | Service createService(Catalog parent, URI id, Map params)(Code) | | Creates an IService based on the params provided. This may or may not
return a singleton, caching is optional. Error messages can be
retrieved using the getStatus and getMessage methods. It is important
to note that this method must inspect the url to determine if it can be
used to create the service. If it cannot, null must be returned.
Parameters: parent - The catalog containing the service, may be null Parameters: id - The sugested service id, should be generated when null. Parameters: params - The set of connection params. These param values mayeither be parsed, or unparsed (String). the IService created, or null when a service cannot be createdfrom these params. See Also: IService.getStatus See Also: IService.getMessage |
|
|