public final class WFSFactory
extends java.lang.Object
WFS service factory class.
Used to get the WFS service to support the operation of the acquisition of the object, the operation of the results of analytic objects, and WFS services supported by the version. Currently in the SuperMap iServer, published WFS service support operations are GetCapabilities, DescribeFeatureType, GetFeature and so on, and supported version contains 1.0.0.
Constructor and Description |
---|
WFSFactory(java.lang.String serviceURL, java.lang.String userName, java.lang.String password)
Builds a WFSFactory object based on the WFS service root, user name, and password.
|
Modifier and Type | Method and Description |
---|---|
WFSCapabilitiesParser |
getCapabilitiesParser(java.lang.String version)
Gets the GetCapabilities operation result resolver for the specified version.
|
AbstractCapabilitiesRequest |
getCapabilitiesRequest(java.lang.String version)
Gets the GetCapabilities request object for the specified version of the WFS service.
|
AbstractFeatureTypeRequest |
getDescribeFeatureTypeRequest(WFSCapabilities capabilities)
Gets the DescribeFeatureType request object based on WFS service capability information.
|
AbstractExceptionParser |
getExceptionParser(WFSCapabilities capabilities)
Obtains an error message parser based on WFS service capability information.
|
GMLParser |
getFeatureParser(WFSCapabilities capabilities)
Obtains the feature resolver based on WFS service capability information.
|
AbstractGetFeatureRequest |
getFeatureRequest(WFSCapabilities capabilities)
Gets the GetFeature request object based on WFS service capability information.
|
AbstractFeatureTypeParser |
getFeatureTypeParser(WFSCapabilities capabilities)
Obtains the DescribeFeatureType action result parser based on WFS service capability information.
|
java.lang.String[] |
getSupportedVersion()
Obtains a list of all WFS version numbers supported by this WFS service factory.
|
public WFSFactory(java.lang.String serviceURL, java.lang.String userName, java.lang.String password)
Builds a WFSFactory object based on the WFS service root, user name, and password.
serviceURL
- WFS service root directory.userName
- username.password
- password.public java.lang.String[] getSupportedVersion()
Obtains a list of all WFS version numbers supported by this WFS service factory.
The version number list is sorted in descending order, ie the highest version in the first, the lowest version at the last one.
public AbstractCapabilitiesRequest getCapabilitiesRequest(java.lang.String version)
version
- version.public WFSCapabilitiesParser getCapabilitiesParser(java.lang.String version)
version
- version.public GMLParser getFeatureParser(WFSCapabilities capabilities)
Obtains the feature resolver based on WFS service capability information.
capabilities
- WFS service capability information.public AbstractGetFeatureRequest getFeatureRequest(WFSCapabilities capabilities)
capabilities
- WFS service capability information.public AbstractFeatureTypeParser getFeatureTypeParser(WFSCapabilities capabilities)
Obtains the DescribeFeatureType action result parser based on WFS service capability information.
capabilities
- WFS service capability information.public AbstractFeatureTypeRequest getDescribeFeatureTypeRequest(WFSCapabilities capabilities)
Gets the DescribeFeatureType request object based on WFS service capability information.
capabilities
- WFS service capability information.public AbstractExceptionParser getExceptionParser(WFSCapabilities capabilities)
Obtains an error message parser based on WFS service capability information.
capabilities
- WFS service capability information.