Package org.gvsig.gazetteer.wfs.drivers
Class WFSServiceDriver
java.lang.Object
org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
org.gvsig.gazetteer.drivers.AbstractGazetteerServiceDriver
org.gvsig.gazetteer.wfs.drivers.WFSServiceDriver
- All Implemented Interfaces:
org.gvsig.catalog.drivers.IDiscoveryServiceDriver,IGazetteerServiceDriver
- Direct Known Subclasses:
WFSGServiceDriver
Driver for the WFS protocol
- Author:
- Jorge Piera Llodra (piera_jor@gva.es)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribeFeatureType(URI uri, String feature) It returns feature propertiesorg.gvsig.catalog.drivers.DiscoveryServiceCapabilitiesgetCapabilities(URI uri) intFeature[]getFeature(URI uri, GazetteerQuery query) It returns the foubd recordsprotected StringgetFilterSQL(GazetteerQuery query) Creates a SQL filter to do the searchbooleanThere are protocols that need to invoke the describeFeatureType operation before to do a getFeature.booleanisProtocolSupported(URI uri) protected Feature[]parseOutputFile(File file, String fieldAttribute) Parses the GML fileMethods inherited from class org.gvsig.gazetteer.drivers.AbstractGazetteerServiceDriver
createQuery, getFeatureTypes, getProjection, getQuery, getUsername, needsUsername, setFeatureTypes, setProjection, setQuery, setUsernameMethods inherited from class org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
getAditionalSearchPanel, getOneServer, getServerAnswerReady, setServerAnswerReady, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.catalog.drivers.IDiscoveryServiceDriver
getAditionalSearchPanel, getOneServer, getServerAnswerReady, setServerAnswerReady, toString
-
Field Details
-
client
protected org.gvsig.remoteclient.wfs.WFSClient client -
status
protected org.gvsig.remoteclient.wfs.WFSStatus status
-
-
Constructor Details
-
WFSServiceDriver
public WFSServiceDriver()
-
-
Method Details
-
getCapabilities
-
describeFeatureType
Description copied from interface:IGazetteerServiceDriverIt returns feature properties- Specified by:
describeFeatureTypein interfaceIGazetteerServiceDriver- Overrides:
describeFeatureTypein classAbstractGazetteerServiceDriver- Parameters:
uri- Server URI- Returns:
- Array of the attributes of a feature
-
isDescribeFeatureTypeNeeded
public boolean isDescribeFeatureTypeNeeded()Description copied from interface:IGazetteerServiceDriverThere are protocols that need to invoke the describeFeatureType operation before to do a getFeature.- Specified by:
isDescribeFeatureTypeNeededin interfaceIGazetteerServiceDriver- Overrides:
isDescribeFeatureTypeNeededin classAbstractGazetteerServiceDriver- Returns:
- if the describeFeatureType operation is needed.
-
getFeature
Description copied from interface:IGazetteerServiceDriverIt returns the foubd records- Parameters:
uri- Server URIquery- Query with the search parameters- Returns:
- The features
- Throws:
Exception
-
parseOutputFile
Parses the GML file- Parameters:
file-- Returns:
-
getFilterSQL
Creates a SQL filter to do the search- Returns:
- A standard SQL query
-
isProtocolSupported
- Specified by:
isProtocolSupportedin interfaceorg.gvsig.catalog.drivers.IDiscoveryServiceDriver- Overrides:
isProtocolSupportedin classorg.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
-
getDefaultPort
public int getDefaultPort()- Specified by:
getDefaultPortin interfaceorg.gvsig.catalog.drivers.IDiscoveryServiceDriver- Overrides:
getDefaultPortin classorg.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
-
getDefaultSchema
- Specified by:
getDefaultSchemain interfaceorg.gvsig.catalog.drivers.IDiscoveryServiceDriver- Overrides:
getDefaultSchemain classorg.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
-
getServiceName
-