| java.lang.Object org.geoserver.ows.Response org.geoserver.wfs.WFSGetFeatureOutputFormat
All known Subclasses: org.geoserver.wfs.xml.GML3OutputFormat, org.geoserver.wfs.response.ShapeZipOutputFormat, org.geoserver.wfs.xml.GML2OutputFormat, org.geoserver.wfs.response.GeoJSONOutputFormat,
WFSGetFeatureOutputFormat | abstract public class WFSGetFeatureOutputFormat extends Response (Code) | | Base class for a response to a WFS GetFeature operation.
The result of a GetFeature operation is an instance of
FeatureCollectionType . Subclasses are responsible for serializing
an instance of this type in
WFSGetFeatureOutputFormat.write(FeatureCollectionType,OutputStream,Operation) .
Subclasses also need declare the mime-type in which the format is encoded.
author: Gabriel Rold?n, Axios Engineering author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |
WFSGetFeatureOutputFormat | public WFSGetFeatureOutputFormat(String outputFormat)(Code) | | Constructor which sets the outputFormat.
Parameters: outputFormat - The well-known name of the format, not null |
WFSGetFeatureOutputFormat | public WFSGetFeatureOutputFormat(Set outputFormats)(Code) | | Constructor which sets the outputFormats.
Parameters: outputFormats - Set of well-known name of the format, not null |
canHandle | public boolean canHandle(Operation operation)(Code) | | Ensures that the operation being executed is a GetFeature operation.
Subclasses may implement
|
canHandleInternal | protected boolean canHandleInternal(Operation operation)(Code) | | Hook for subclasses to add addtional checks to
WFSGetFeatureOutputFormat.canHandle(Operation) .
Subclasses may override this method if need be, the default impelementation
returns true
Parameters: operation - The operation being performed. true if the output format can handle the operation,otherwise false |
getCapabilitiesElementName | public String getCapabilitiesElementName()(Code) | | capabilities output format string. Something that's a valid XML element name.
This should be overriden in each outputformat subclass, and if it's not a warning will be
issued.
|
write | abstract protected void write(FeatureCollectionType featureCollection, OutputStream output, Operation getFeature) throws IOException, ServiceException(Code) | | Serializes the feature collection in the format declared.
Parameters: featureCollection - The feature collection. Parameters: output - The output stream to serialize to. Parameters: getFeature - The GetFeature operation descriptor. |
|
|