There are several use-cases which require the usage of a custom ILcdOWSTransport
.
For example:
Configuring the custom transport on the model decoder
When you want to visualize WFS data on a map, you first use the WFS model decoder to create an ILcdModel
,
as illustrated in
Visualize WFS data on a Lightspeed map tutorial.
You can pass the custom transport to the constructor of the model decoder, and the model decoder will use this transport:
TLcdWFSModelDecoderDecorator modelDecoder = new TLcdWFSModelDecoderDecorator(customTransport);
Configuring the custom transport on the TLcdWFSClient
When you want to send your own WFS requests to the server, you use the TLcdWFSClient
directly.
Creating a client which uses a custom transport is done by passing the transport to the factory method:
TLcdWFSClient client = TLcdWFSClient.createWFSClient(serverURI, customTransport, null);