Package thredds.server.wfs
Class WFSGetCapabilitiesWriter
java.lang.Object
thredds.server.wfs.WFSGetCapabilitiesWriter
A writer for a WFS compliant Geospatial XML given a print writer.
Specifically writes the XML for WFS GetCapabilities requests.
-
Constructor Summary
ConstructorsConstructorDescriptionWFSGetCapabilitiesWriter(PrintWriter response, String server) Opens a WFSDataWriter, writes to the HttpResponse given. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeature(WFSFeature feature) Add a feature to the writer's feature list.voidGiven the parameter operation name, add the operation to the operations metadata section.voidFinish 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.voidvoidTakes all added operations and writes an operations metadata section.
-
Constructor Details
-
WFSGetCapabilitiesWriter
Opens a WFSDataWriter, writes to the HttpResponse given.- Parameters:
response- to write toserver- 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
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
Add a feature to the writer's feature list.- Parameters:
feature- to add
-