Class TLcdWFSDataSource.Builder

java.lang.Object
com.luciad.ogc.wfs.client.TLcdWFSDataSource.Builder
Enclosing class:
TLcdWFSDataSource

public static class TLcdWFSDataSource.Builder extends Object
A builder to create TLcdWFSDataSource instances.

By default, all values are null.

The class documentation of TLcdWFSDataSource documents the minimum requirement for building a TLcdWFSDataSource.

Since:
2018.0
See Also:
  • Method Details

    • uri

      public TLcdWFSDataSource.Builder uri(URI aUri)
      Specify the URI of the WFS server.

      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.

      Parameters:
      aUri - The URI of the WFS
      Returns:
      this
    • uri

      public TLcdWFSDataSource.Builder uri(String aUri)
      Specify the URI of the WFS server.
      Parameters:
      aUri - The URI of the WFS
      Returns:
      this
    • featureTypeName

      public TLcdWFSDataSource.Builder featureTypeName(String aFeatureTypeName)
      Adds a feature instance type to be requested from WFS server.
      Parameters:
      aFeatureTypeName - A feature type name.
      Returns:
      this
    • featureTypeName

      public TLcdWFSDataSource.Builder featureTypeName(QName aFeatureTypeName)
      Adds a feature instance type to be requested from WFS server.
      Parameters:
      aFeatureTypeName - A feature type name.
      Returns:
      this
      Since:
      2019.0
    • all

      public TLcdWFSDataSource.Builder all(TLcdWFSDataSource aDataSource)
      Initializes this builder to the values of the given TLcdWFSDataSource.
      Parameters:
      aDataSource - The data source instance to copy
      Returns:
      this
    • build

      public TLcdWFSDataSource build()
      Create the 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.

      Returns:
      A new instance
      Throws:
      IllegalArgumentException - if the minimum requirements for building a TLcdWFSDataSource are not met.