Package thredds.server.wfs
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 Summary
Constructors Constructor Description WFSGetCapabilitiesWriter(PrintWriter response, String server)Opens a WFSDataWriter, writes to the HttpResponse given.
-
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.voidaddOperation(WFSRequestType rt)Given the parameter operation name, add the operation to the operations metadata section.voidfinishXML()Finish writing the XML file, write the end tag for WFS_Capabilities and append it all to the PrintWriter.voidstartXML()Initiate the response with an XML file with an XML header.voidwriteFeatureTypes()voidwriteOperations()Takes all added operations and writes an operations metadata section.
-
-
-
Constructor Detail
-
WFSGetCapabilitiesWriter
public WFSGetCapabilitiesWriter(PrintWriter response, String server)
Opens a WFSDataWriter, writes to the HttpResponse given.- Parameters:
response- to write toserver- URI
-
-
Method Detail
-
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
-
-