public class TLcdWFSClientModelEncoderFactory extends Object implements ILcdWFSClientModelEncoderFactory
ILcdWFSClientModelEncoderFactory
.
Supports GML 2, GML 3.1, GML 3.2 and GeoJSON output formats.Constructor and Description |
---|
TLcdWFSClientModelEncoderFactory()
Creates a new
TLcdWFSClientModelEncoderFactory . |
Modifier and Type | Method and Description |
---|---|
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.
|
ILcdWFSModelSchemaEncoder |
createModelSchemaEncoder(ILcdOutputStreamFactory aOutputStreamFactory,
String aOutputFormat,
TLcdWFSRequestContext aContext)
Returns a model schema encoder that can produce the appropriate response
to a DescribeFeatureType request.
|
ILcdModelReferenceFormatter |
getModelReferenceFormatter()
Returns the model reference formatter that is used when encoding models.
|
String |
getSupportedOutputFormat(int aIndex,
TLcdWFSRequestContext aContext)
Returns the output format at the given index for which this factory can produce a
model encoder.
|
int |
getSupportedOutputFormatCount(TLcdWFSRequestContext aContext)
Returns the number of output formats for which this factory can produce
model encoders.
|
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.
|
int |
getSupportedSchemaOutputFormatCount(TLcdWFSRequestContext aContext)
Returns the number of schema output formats for which this factory can produce
model schema encoders.
|
void |
setModelReferenceFormatter(ILcdModelReferenceFormatter aReferenceFormatter)
Sets the model reference formatter to be used when encoding models.
|
public TLcdWFSClientModelEncoderFactory()
TLcdWFSClientModelEncoderFactory
.public void setModelReferenceFormatter(ILcdModelReferenceFormatter aReferenceFormatter)
aReferenceFormatter
- the model reference formatter to be used when encoding models.public ILcdModelReferenceFormatter getModelReferenceFormatter()
public ILcdWFSModelEncoder createModelEncoder(ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormat, TLcdWFSRequestContext aContext)
ILcdWFSClientModelEncoderFactory
ILcdModelEncoder
instances
which also implement ILcdWFSLockModelEncoder
.createModelEncoder
in interface ILcdWFSClientModelEncoderFactory
aOutputStreamFactory
- An ILcdOutputStreamFactory
.aOutputFormat
- A string describing the requested output format, e.g. "GML2".aContext
- context information regarding the WFS request being handledILcdModelEncoder
.ILcdWFSLockModelEncoder
public int getSupportedOutputFormatCount(TLcdWFSRequestContext aContext)
ILcdWFSClientModelEncoderFactory
getSupportedOutputFormatCount
in interface ILcdWFSClientModelEncoderFactory
aContext
- context information regarding the WFS request being handledILcdWFSClientModelEncoderFactory.getSupportedOutputFormat(int, TLcdWFSRequestContext)
public String getSupportedOutputFormat(int aIndex, TLcdWFSRequestContext aContext)
ILcdWFSClientModelEncoderFactory
getSupportedOutputFormat
in interface ILcdWFSClientModelEncoderFactory
aIndex
- the index of the requested output formataContext
- context information regarding the WFS request being handledpublic int getSupportedSchemaOutputFormatCount(TLcdWFSRequestContext aContext)
ILcdWFSClientModelEncoderFactory
getSupportedSchemaOutputFormatCount
in interface ILcdWFSClientModelEncoderFactory
aContext
- context information regarding the WFS request being handledILcdWFSClientModelEncoderFactory.getSupportedSchemaOutputFormat(int, TLcdWFSRequestContext)
public String getSupportedSchemaOutputFormat(int aIndex, TLcdWFSRequestContext aContext)
ILcdWFSClientModelEncoderFactory
getSupportedSchemaOutputFormat
in interface ILcdWFSClientModelEncoderFactory
aIndex
- the index of the requested schema output formataContext
- context information regarding the WFS request being handledpublic ILcdWFSModelSchemaEncoder createModelSchemaEncoder(ILcdOutputStreamFactory aOutputStreamFactory, String aOutputFormat, TLcdWFSRequestContext aContext)
ILcdWFSClientModelEncoderFactory
createModelSchemaEncoder
in interface ILcdWFSClientModelEncoderFactory
aOutputStreamFactory
- an ILcdOutputStreamFactoryaOutputFormat
- A string describing the requested output format, e.g. "XMLSCHEMA".aContext
- context information regarding the WFS request being handled