Package thredds.server.wfs
Class WFSDescribeFeatureTypeWriter
- java.lang.Object
-
- thredds.server.wfs.WFSDescribeFeatureTypeWriter
-
public class WFSDescribeFeatureTypeWriter extends Object
Writes the XML for a WFS DescribeFeatureType request
-
-
Constructor Summary
Constructors Constructor Description WFSDescribeFeatureTypeWriter(PrintWriter response, String server, String namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFeature(WFSFeature feature)Add a feature to the writer's feature list.voidfinishXML()Finish writing the XML file and append it all to the PrintWriter.voidstartXML()Initiate the response with an XML file with an XML headervoidwriteFeatures()Write the features from the featureList.
-
-
-
Constructor Detail
-
WFSDescribeFeatureTypeWriter
public WFSDescribeFeatureTypeWriter(PrintWriter response, String server, String namespace)
-
-
Method Detail
-
startXML
public void startXML()
Initiate the response with an XML file with an XML header
-
addFeature
public void addFeature(WFSFeature feature)
Add a feature to the writer's feature list.- Parameters:
feature- to add
-
writeFeatures
public void writeFeatures()
Write the features from the featureList. For each feature, write its attributes
-
finishXML
public void finishXML()
Finish writing the XML file and append it all to the PrintWriter. Once a XML is finished, the WFSDataWriter is no longer usable.
-
-