public class TLcdWFSCapabilitiesDecoder extends Object
TLcdWFSCapabilitiesDecoder
class allows to decode WFS capabilities
from a WFS server, with support for version 1.0 and 1.1.
The decoded capabilities can be used with TLcdWFSProxyModel.Builder
to create a WFS proxy model.
An alternative and preferred approach is to create a TLcdWFSClient
instance,
which gives access to the capabilities and also can be used to create a WFS proxy model.TLcdWFSProxyModel.Builder
,
TLcdWFSClient
Constructor and Description |
---|
TLcdWFSCapabilitiesDecoder() |
Modifier and Type | Method and Description |
---|---|
TLcdWFSCapabilities |
decodeCapabilities(String aLocation)
Retrieves and decodes the WFS capabilities from the server specified by the given
URL.
|
void |
setRequestProperty(String aKey,
String aValue)
Sets the general request property.
|
public TLcdWFSCapabilities decodeCapabilities(String aLocation) throws IOException
aLocation
- the location (URL or filename) of the capabilities documentIOException
- if the capabilities document can not be readpublic void setRequestProperty(String aKey, String aValue)
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)