TLcdWFSProxyModel.Builder
instead.@Deprecated public class TLcdWFSProxyModelFactory extends Object
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
.TLcdWFSProxyModel
,
TLcdWFSCapabilitiesDecoder
,
TLcdWFSClient
Constructor and Description |
---|
TLcdWFSProxyModelFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TLcdWFSProxyModel |
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.
|
TLcdWFSProxyModel |
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.
|
TLcdWFSProxyModel |
createProxyModel(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.
|
TLcdWFSProxyModel |
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.
|
ILcdModelReferenceParser |
getModelReferenceParser()
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.
|
public TLcdWFSProxyModel createProxyModel(TLcdWFSClient aClient, QName aFeatureTypeName) throws IOException
TLcdWFSProxyModelDescriptor
instance.aClient
- a WFS client.aFeatureTypeName
- the specified feature type.IOException
- if the proxy model cannot be createdpublic TLcdWFSProxyModel createProxyModel(TLcdWFSCapabilities aCapabilities, QName aFeatureTypeName) throws IOException
TLcdWFSProxyModelDescriptor
instance.aCapabilities
- the WFS capabilities object.aFeatureTypeName
- the specified feature type.IOException
- if the proxy model cannot be createdpublic TLcdWFSProxyModel createProxyModel(TLcdWFSCapabilities aCapabilities, QName aFeatureTypeName, ILcdWFSModelDecoder aModelDecoder) throws IOException
TLcdWFSProxyModelDescriptor
instance.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 WFSIOException
- if the proxy model cannot be createdpublic TLcdWFSProxyModel createProxyModel(TLcdWFSClient aClient, QName aFeatureTypeName, ILcdWFSModelDecoder aModelDecoder) throws IOException
TLcdWFSProxyModelDescriptor
instance.aClient
- a WFS client.aFeatureTypeName
- the specified feature type.aModelDecoder
- the WFS model decoder that must be used to decode the response from the WFSIOException
- if the proxy model cannot be createdpublic void setModelReferenceParser(ILcdModelReferenceParser aReferenceParser)
aReferenceParser
- A valid reference parser.public ILcdModelReferenceParser getModelReferenceParser()
setModelReferenceParser(ILcdModelReferenceParser)
public void setRequestProperty(String aKey, String aValue)
null
is specified as value, the property is removed.aKey
- the keyword by which the request is known (e.g., "accept
").aValue
- the value associated with it.URLConnection.setRequestProperty(java.lang.String, java.lang.String)