LuciadCPillar 2026.1.02
Loading...
Searching...
No Matches
luciad::WfsModelDecoderOptions::Builder Class Referencefinal

Builder for the WFS options. More...

#include <luciad/formats/wfs/WfsModelDecoderOptions.h>

Public Member Functions

 Builder (Builder &&other) noexcept
 Move constructor.
 Builder (const Builder &other)
 Copy constructor.
 ~Builder ()
WfsModelDecoderOptions build ()
 Builds the options for the WFS model decoder.
Builder & httpClient (std::shared_ptr< IHttpClient > httpClient)
 Sets the http client to be used for fetching the data.
Builder & operator= (Builder other) noexcept
Builder & outputFormat (std::string outputFormat)
 Sets the output format to request for GetFeature responses.

Detailed Description

Builder for the WFS options.

Since
2026.0

Constructor & Destructor Documentation

◆ Builder() [1/2]

luciad::WfsModelDecoderOptions::Builder::Builder ( const Builder & other)

Copy constructor.

Parameters
otherthe builder to copy.

◆ Builder() [2/2]

luciad::WfsModelDecoderOptions::Builder::Builder ( Builder && other)
noexcept

Move constructor.

Parameters
otherthe builder to move from.

◆ ~Builder()

luciad::WfsModelDecoderOptions::Builder::~Builder ( )

Member Function Documentation

◆ build()

WfsModelDecoderOptions luciad::WfsModelDecoderOptions::Builder::build ( )

Builds the options for the WFS model decoder.

Returns
the options for the WFS model decoder.
Exceptions
luciad::LogicExceptionIf not all mandatory parameters are set.

◆ httpClient()

Builder & luciad::WfsModelDecoderOptions::Builder::httpClient ( std::shared_ptr< IHttpClient > httpClient)

Sets the http client to be used for fetching the data.

Calling this function is optional.

See related article for an example on how to customize HTTP requests when loading data.

Parameters
httpClientHTTP client implementation to fetch the WFS resources. When nullptr the decoder uses its own HTTP client.
Returns
this builder.

◆ operator=()

Builder & luciad::WfsModelDecoderOptions::Builder::operator= ( Builder other)
noexcept

◆ outputFormat()

Builder & luciad::WfsModelDecoderOptions::Builder::outputFormat ( std::string outputFormat)

Sets the output format to request for GetFeature responses.

Calling this function is optional. If you leave it unset, no OUTPUTFORMAT query parameter is sent and the server default (GML) is used.

The value is an output format the server advertises, as listed by WfsFeatureType::getOutputFormats(), for example "application/json". A value that looks like JSON is decoded as GeoJSON. Any other value is decoded as GML. Only GML and GeoJSON responses can be decoded.

Parameters
outputFormatthe output format to request. Cannot be empty.
Returns
this builder.
Exceptions
luciad::InvalidArgumentExceptionif outputFormat is empty.
Since
2026.1