Package com.luciad.ogc.wfs
Class TLcdWFSClientModelEncoderFactory
java.lang.Object
com.luciad.ogc.wfs.TLcdWFSClientModelEncoderFactory
- All Implemented Interfaces:
ILcdWFSClientModelEncoderFactory
public class TLcdWFSClientModelEncoderFactory
extends Object
implements ILcdWFSClientModelEncoderFactory
Default implementation of
ILcdWFSClientModelEncoderFactory. Supports GML 2, GML 3.1, GML 3.2 and GeoJSON
output formats.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdWFSClientModelEncoderFactory. -
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 aOutputFormat, TLcdWFSRequestContext aContext) Returns a model schema encoder that can produce the appropriate response to a DescribeFeatureType request.Returns the model reference formatter that is used when encoding models.getSupportedOutputFormat(int aIndex, TLcdWFSRequestContext aContext) Returns the output format at the given index for which this factory can produce a model encoder.intReturns 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.intReturns the number of schema output formats for which this factory can produce model schema encoders.voidsetModelReferenceFormatter(ILcdModelReferenceFormatter aReferenceFormatter) Sets the model reference formatter to be used when encoding models.
-
Constructor Details
-
TLcdWFSClientModelEncoderFactory
public TLcdWFSClientModelEncoderFactory()Creates a newTLcdWFSClientModelEncoderFactory.
-
-
Method Details
-
setModelReferenceFormatter
Sets the model reference formatter to be used when encoding models.- Parameters:
aReferenceFormatter- the model reference formatter to be used when encoding models.
-
getModelReferenceFormatter
Returns the model reference formatter that is used when encoding models.- Returns:
- the model reference formatter that is used when encoding models.
- Since:
- 2020.1
-
createModelEncoder
public ILcdWFSModelEncoder createModelEncoder(ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormat, TLcdWFSRequestContext aContext) Description copied from interface:ILcdWFSClientModelEncoderFactoryReturns 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 returnILcdModelEncoderinstances which also implementILcdWFSLockModelEncoder.- Specified by:
createModelEncoderin interfaceILcdWFSClientModelEncoderFactory- 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
Description copied from interface:ILcdWFSClientModelEncoderFactoryReturns the number of output formats for which this factory can produce model encoders.- Specified by:
getSupportedOutputFormatCountin interfaceILcdWFSClientModelEncoderFactory- Parameters:
aContext- context information regarding the WFS request being handled- Returns:
- the number of supported output formats.
- See Also:
-
getSupportedOutputFormat
Description copied from interface:ILcdWFSClientModelEncoderFactoryReturns 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.- Specified by:
getSupportedOutputFormatin interfaceILcdWFSClientModelEncoderFactory- Parameters:
aIndex- the index of the requested output formataContext- context information regarding the WFS request being handled- Returns:
- an output format
-
getSupportedSchemaOutputFormatCount
Description copied from interface:ILcdWFSClientModelEncoderFactoryReturns the number of schema output formats for which this factory can produce model schema encoders.- Specified by:
getSupportedSchemaOutputFormatCountin interfaceILcdWFSClientModelEncoderFactory- Parameters:
aContext- context information regarding the WFS request being handled- Returns:
- the number of supported schema output formats.
- See Also:
-
getSupportedSchemaOutputFormat
Description copied from interface:ILcdWFSClientModelEncoderFactoryReturns 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.- Specified by:
getSupportedSchemaOutputFormatin interfaceILcdWFSClientModelEncoderFactory- Parameters:
aIndex- the index of the requested schema output formataContext- context information regarding the WFS request being handled- Returns:
- an output format
-
createModelSchemaEncoder
public ILcdWFSModelSchemaEncoder createModelSchemaEncoder(ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormat, TLcdWFSRequestContext aContext) Description copied from interface:ILcdWFSClientModelEncoderFactoryReturns 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.- Specified by:
createModelSchemaEncoderin interfaceILcdWFSClientModelEncoderFactory- Parameters:
aOutputStreamFactory- an ILcdOutputStreamFactoryaOutputFormat- A string describing the requested output format, e.g. "XMLSCHEMA".aContext- context information regarding the WFS request being handled- Returns:
- an ILcdWFSModelSchemaEncoder
-