Package com.luciad.ogc.wfs.client
Class TLcdWFSProxyModelFactory
java.lang.Object
com.luciad.ogc.wfs.client.TLcdWFSProxyModelFactory
Deprecated.
Factory for creating WFS proxy models.
A proxy model uses a
TLcdWFSClient
instance as interface to connect with a WFS
server, and to perform requests. A new TLcdWFSClient
instance is created for each
proxy model automatically, or it can be supplied manually, depending on the factory method used
to create a proxy model.
To communicate with a WFS server, a proxy model uses the information published in its
capabilities. If a TLcdWFSClient
is supplied manually, the capabilities are
automatically retrieved through TLcdWFSClient.getCachedCapabilities()
. Otherwise, a
TLcdWFSCapabilities
object needs to be supplied manually. This can be obtained
through a TLcdWFSCapabilitiesDecoder
.- Since:
- 6.2
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateProxyModel
(TLcdWFSClient aClient, QName aFeatureTypeName) Deprecated.Given a WFS client and the name of a specific feature type, creates a proxy model for that feature type.createProxyModel
(TLcdWFSClient aClient, QName aFeatureTypeName, ILcdWFSModelDecoder aModelDecoder) Deprecated.Given a WFS client and the name of a specific feature type, creates a proxy model for that feature type.createProxyModel
(TLcdWFSCapabilities aCapabilities, QName aFeatureTypeName) Deprecated.Given a WFS capabilities document and the name of a specific feature type, creates a proxy model for that feature type.createProxyModel
(TLcdWFSCapabilities aCapabilities, QName aFeatureTypeName, ILcdWFSModelDecoder aModelDecoder) Deprecated.Given a WFS capabilities document, the name of a specific feature type and a WFS model decoder, creates a proxy model for that feature type.Deprecated.Returns the model reference parser of this proxy model factory.void
setModelReferenceParser
(ILcdModelReferenceParser aReferenceParser) Deprecated.Sets a reference parser that will be used by the proxy model.void
setRequestProperty
(String aKey, String aValue) Deprecated.Sets the general request property.
-
Constructor Details
-
TLcdWFSProxyModelFactory
public TLcdWFSProxyModelFactory()Deprecated.
-
-
Method Details
-
createProxyModel
public TLcdWFSProxyModel createProxyModel(TLcdWFSClient aClient, QName aFeatureTypeName) throws IOException Deprecated.Given a WFS client and the name of a specific feature type, creates a proxy model for that feature type. The model is described by aTLcdWFSProxyModelDescriptor
instance.- Parameters:
aClient
- a WFS client.aFeatureTypeName
- the specified feature type.- Returns:
- the WFS proxy model.
- Throws:
IOException
- if the proxy model cannot be created
-
createProxyModel
public TLcdWFSProxyModel createProxyModel(TLcdWFSCapabilities aCapabilities, QName aFeatureTypeName) throws IOException Deprecated.Given a WFS capabilities document and the name of a specific feature type, creates a proxy model for that feature type. The model is described by aTLcdWFSProxyModelDescriptor
instance.- Parameters:
aCapabilities
- the WFS capabilities object.aFeatureTypeName
- the specified feature type.- Returns:
- the WFS proxy model.
- Throws:
IOException
- if the proxy model cannot be created
-
createProxyModel
public TLcdWFSProxyModel createProxyModel(TLcdWFSCapabilities aCapabilities, QName aFeatureTypeName, ILcdWFSModelDecoder aModelDecoder) throws IOException Deprecated.Given a WFS capabilities document, the name of a specific feature type and a WFS model decoder, creates a proxy model for that feature type. The model is described by aTLcdWFSProxyModelDescriptor
instance.- Parameters:
aCapabilities
- the WFS capabilities object.aFeatureTypeName
- the specified feature type.aModelDecoder
- the WFS model decoder that must be used to decode the response from the WFS- Returns:
- the WFS proxy model.
- Throws:
IOException
- if the proxy model cannot be created
-
createProxyModel
public TLcdWFSProxyModel createProxyModel(TLcdWFSClient aClient, QName aFeatureTypeName, ILcdWFSModelDecoder aModelDecoder) throws IOException Deprecated.Given a WFS client and the name of a specific feature type, creates a proxy model for that feature type. The model is described by aTLcdWFSProxyModelDescriptor
instance.- Parameters:
aClient
- a WFS client.aFeatureTypeName
- the specified feature type.aModelDecoder
- the WFS model decoder that must be used to decode the response from the WFS- Returns:
- the WFS proxy model.
- Throws:
IOException
- if the proxy model cannot be created
-
setModelReferenceParser
Deprecated.Sets a reference parser that will be used by the proxy model. This can be used to support servers that use custom reference names. The reference parser will be used for:- Parsing the defaultSRS of the feature type of the proxy model.
- Decoding srsNames that occur in results of 'GetFeature' requests in case no custom model decoder is used.
- Parameters:
aReferenceParser
- A valid reference parser.- Since:
- 10.1
-
getModelReferenceParser
Deprecated.Returns the model reference parser of this proxy model factory. By default no model reference parser is set.- Returns:
- A model reference parser or null
- Since:
- 10.1
- See Also:
-
setRequestProperty
Deprecated.Sets the general request property. If a property with the key already exists, overwrite its value with the new value. Ifnull
is specified as value, the property is removed.- Parameters:
aKey
- the keyword by which the request is known (e.g., "accept
").aValue
- the value associated with it.- See Also:
-
TLcdWFSProxyModel.Builder
instead.