Class WFSDescribeFeatureTypeWriter

java.lang.Object
thredds.server.wfs.WFSDescribeFeatureTypeWriter

public class WFSDescribeFeatureTypeWriter extends Object
Writes the XML for a WFS DescribeFeatureType request
  • Constructor Details

    • WFSDescribeFeatureTypeWriter

      public WFSDescribeFeatureTypeWriter(PrintWriter response, String server, String namespace)
  • Method Details

    • 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.