public static class TLcdWFSDataSource.Builder extends Object
TLcdWFSDataSource
instances.
By default, all values are null
.
The class documentation of TLcdWFSDataSource
documents the minimum requirement for building a TLcdWFSDataSource
.
TLcdWFSDataSource
Modifier and Type | Method and Description |
---|---|
TLcdWFSDataSource.Builder |
all(TLcdWFSDataSource aDataSource)
Initializes this builder to the values of the given
TLcdWFSDataSource . |
TLcdWFSDataSource |
build()
Create the
TLcdWFSDataSource instance that corresponds to the values in this
builder. |
TLcdWFSDataSource.Builder |
featureTypeName(QName aFeatureTypeName)
Adds a feature instance type to be requested from WFS server.
|
TLcdWFSDataSource.Builder |
featureTypeName(String aFeatureTypeName)
Adds a feature instance type to be requested from WFS server.
|
TLcdWFSDataSource.Builder |
uri(String aUri)
Specify the URI of the WFS server.
|
TLcdWFSDataSource.Builder |
uri(URI aUri)
Specify the URI of the WFS server.
|
public TLcdWFSDataSource.Builder uri(URI aUri)
If the URI's query parameters contain data
, typename
or typenames
parameters,
those are interpreted as feature type names and set on this builder as well.
For example, http://hostname:8080/Luciad/wfs?data=myFeatures
specifies feature type namemyFeatures
.
aUri
- The URI of the WFSpublic TLcdWFSDataSource.Builder uri(String aUri)
aUri
- The URI of the WFSpublic TLcdWFSDataSource.Builder featureTypeName(String aFeatureTypeName)
aFeatureTypeName
- A feature type name.public TLcdWFSDataSource.Builder featureTypeName(QName aFeatureTypeName)
aFeatureTypeName
- A feature type name.public TLcdWFSDataSource.Builder all(TLcdWFSDataSource aDataSource)
TLcdWFSDataSource
.aDataSource
- The data source instance to copypublic TLcdWFSDataSource build()
TLcdWFSDataSource
instance that corresponds to the values in this
builder.
You have to at least specify a uri(java.net.URI)
and a feature featureTypeName(java.lang.String)
before building the instance.
IllegalArgumentException
- if the minimum requirements for building a TLcdWFSDataSource are not met.