Interface ILcdWFSClientModelEncoderFactory

All Known Implementing Classes:
TLcdWFSClientModelEncoderFactory

public interface ILcdWFSClientModelEncoderFactory
A model encoder factory for WFS server-to-client transfers.
  • 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 return ILcdModelEncoder instances which also implement ILcdWFSLockModelEncoder.
      Parameters:
      aOutputStreamFactory - An ILcdOutputStreamFactory.
      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

      int getSupportedOutputFormatCount(TLcdWFSRequestContext aContext)
      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

      String getSupportedOutputFormat(int aIndex, TLcdWFSRequestContext aContext)
      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 format
      aContext - 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 ILcdOutputStreamFactory
      aOutputFormatName - A string describing the requested output format, e.g. "XMLSCHEMA".
      aContext - context information regarding the WFS request being handled
      Returns:
      an ILcdWFSModelSchemaEncoder
    • getSupportedSchemaOutputFormatCount

      int getSupportedSchemaOutputFormatCount(TLcdWFSRequestContext aContext)
      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

      String getSupportedSchemaOutputFormat(int aIndex, TLcdWFSRequestContext aContext)
      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 format
      aContext - context information regarding the WFS request being handled
      Returns:
      an output format