Package com.luciad.ogc.wfs
Interface ILcdWFSClientModelEncoderFactory
- All Known Implementing Classes:
TLcdWFSClientModelEncoderFactory
public interface ILcdWFSClientModelEncoderFactory
A model encoder factory for WFS server-to-client transfers.
-
Method Summary
Modifier and TypeMethodDescriptioncreateModelEncoder
(ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormat, TLcdWFSRequestContext aContext) Returns a model encoder that can encode models in the requested format to an output stream provided by the given factory.createModelSchemaEncoder
(ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormatName, TLcdWFSRequestContext aContext) Returns a model schema encoder that can produce the appropriate response to a DescribeFeatureType request.getSupportedOutputFormat
(int aIndex, TLcdWFSRequestContext aContext) Returns the output format at the given index for which this factory can produce a model encoder.int
Returns the number of output formats for which this factory can produce model encoders.getSupportedSchemaOutputFormat
(int aIndex, TLcdWFSRequestContext aContext) Returns the schema output format at the given index for which this factory can produce a model schema encoder.int
Returns the number of schema output formats for which this factory can produce model schema encoders.
-
Method Details
-
createModelEncoder
ILcdWFSModelEncoder createModelEncoder(ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormat, TLcdWFSRequestContext aContext) Returns a model encoder that can encode models in the requested format to an output stream provided by the given factory. WFS-T servers that want to support locking need to returnILcdModelEncoder
instances which also implementILcdWFSLockModelEncoder
.- Parameters:
aOutputStreamFactory
- AnILcdOutputStreamFactory
.aOutputFormat
- A string describing the requested output format, e.g. "GML2".aContext
- context information regarding the WFS request being handled- Returns:
- An
ILcdModelEncoder
. - See Also:
-
getSupportedOutputFormatCount
Returns the number of output formats for which this factory can produce model encoders.- Parameters:
aContext
- context information regarding the WFS request being handled- Returns:
- the number of supported output formats.
- See Also:
-
getSupportedOutputFormat
Returns the output format at the given index for which this factory can produce a model encoder. The format name is passed as an argument to the createModelEncoder() method. create- Parameters:
aIndex
- the index of the requested output formataContext
- context information regarding the WFS request being handled- Returns:
- an output format
-
createModelSchemaEncoder
ILcdWFSModelSchemaEncoder createModelSchemaEncoder(ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormatName, TLcdWFSRequestContext aContext) Returns a model schema encoder that can produce the appropriate response to a DescribeFeatureType request. The response must be in the specified format, and must be written to an output stream provided by the given factory.- Parameters:
aOutputStreamFactory
- an ILcdOutputStreamFactoryaOutputFormatName
- A string describing the requested output format, e.g. "XMLSCHEMA".aContext
- context information regarding the WFS request being handled- Returns:
- an ILcdWFSModelSchemaEncoder
-
getSupportedSchemaOutputFormatCount
Returns the number of schema output formats for which this factory can produce model schema encoders.- Parameters:
aContext
- context information regarding the WFS request being handled- Returns:
- the number of supported schema output formats.
- See Also:
-
getSupportedSchemaOutputFormat
Returns the schema output format at the given index for which this factory can produce a model schema encoder. The format name is passed as an argument to the createModelSchemaEncoder() method.- Parameters:
aIndex
- the index of the requested schema output formataContext
- context information regarding the WFS request being handled- Returns:
- an output format
-