Class WFSGetCapabilitiesWriter

java.lang.Object
thredds.server.wfs.WFSGetCapabilitiesWriter

public class WFSGetCapabilitiesWriter extends Object
A writer for a WFS compliant Geospatial XML given a print writer. Specifically writes the XML for WFS GetCapabilities requests.
  • Constructor Details

    • WFSGetCapabilitiesWriter

      public WFSGetCapabilitiesWriter(PrintWriter response, String server)
      Opens a WFSDataWriter, writes to the HttpResponse given.
      Parameters:
      response - to write to
      server - URI
  • Method Details

    • startXML

      public void startXML()
      Initiate the response with an XML file with an XML header.
    • finishXML

      public void finishXML()
      Finish writing the XML file, write the end tag for WFS_Capabilities and append it all to the PrintWriter. Once a XML is finished, the WFSDataWriter is no longer usable.
    • addOperation

      public void addOperation(WFSRequestType rt)
      Given the parameter operation name, add the operation to the operations metadata section.
    • writeOperations

      public void writeOperations()
      Takes all added operations and writes an operations metadata section.
    • writeFeatureTypes

      public void writeFeatureTypes()
    • addFeature

      public void addFeature(WFSFeature feature)
      Add a feature to the writer's feature list.
      Parameters:
      feature - to add