org.deegree.services.wfs.format.gml
Class GMLFormat

java.lang.Object
  extended by org.deegree.services.wfs.format.gml.GMLFormat
All Implemented Interfaces:
Format

public class GMLFormat
extends Object
implements Format

Default Format implementation that can handle GML 2/3.0/3.1/3.2 and the specific requirements for WFS 2.0 response FeatureCollections (which are not GML feature collections in a strict sense).

NOTE: For WFS 1.1.0, some schema communities decided to use a different feature collection element than wfs:FeatureCollection, mostly because wfs:FeatureCollection is bound to GML 3.1. This practice is supported by this Format implementation for WFS 1.0.0 and WFS 1.1.0 output. However, for WFS 2.0, there's hope that people will refrain from doing so (as WFS 2.0 FeatureCollection allows GML 3.2 output and is not bound to any specific GML version). Therefore, it is currently not supported to use any different output container for WFS 2.0.

Version:
$Revision: 32260 $, $Date: 2011-10-21 19:08:26 +0200 (Fri, 21 Oct 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
GMLFormat(WebFeatureService master, GMLFormat formatDef)
           
GMLFormat(WebFeatureService master, GMLVersion gmlVersion)
           
 
Method Summary
 void destroy()
          Called by the WebFeatureService to indicate that this Format is taken out of service.
 void doDescribeFeatureType(DescribeFeatureType request, HttpResponseBuffer response)
          Invoked by the WebFeatureService to perform a DescribeFeatureType request for this format.
 void doGetFeature(GetFeature request, HttpResponseBuffer response)
          Invoked by the WebFeatureService to perform a GetFeature request for this format.
 void doGetGmlObject(GetGmlObject request, HttpResponseBuffer response)
          Invoked by the WebFeatureService to perform a GetGmlObject request for this format.
 void doGetPropertyValue(GetPropertyValue request, HttpResponseBuffer response)
          Invoked by the WebFeatureService to perform a GetPropertyValue request for this format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLFormat

public GMLFormat(WebFeatureService master,
                 GMLVersion gmlVersion)

GMLFormat

public GMLFormat(WebFeatureService master,
                 GMLFormat formatDef)
          throws ResourceInitException
Throws:
ResourceInitException
Method Detail

destroy

public void destroy()
Description copied from interface: Format
Called by the WebFeatureService to indicate that this Format is taken out of service.

Specified by:
destroy in interface Format

doDescribeFeatureType

public void doDescribeFeatureType(DescribeFeatureType request,
                                  HttpResponseBuffer response)
                           throws OWSException,
                                  XMLStreamException,
                                  IOException
Description copied from interface: Format
Invoked by the WebFeatureService to perform a DescribeFeatureType request for this format.

Specified by:
doDescribeFeatureType in interface Format
Parameters:
request - request to be performed, never null
response - sink for writing the response, never null
Throws:
OWSException
XMLStreamException
IOException

doGetFeature

public void doGetFeature(GetFeature request,
                         HttpResponseBuffer response)
                  throws Exception
Description copied from interface: Format
Invoked by the WebFeatureService to perform a GetFeature request for this format.

Specified by:
doGetFeature in interface Format
Parameters:
request - request to be performed, never null
response - sink for writing the response, never null
Throws:
Exception

doGetGmlObject

public void doGetGmlObject(GetGmlObject request,
                           HttpResponseBuffer response)
                    throws Exception
Description copied from interface: Format
Invoked by the WebFeatureService to perform a GetGmlObject request for this format.

Specified by:
doGetGmlObject in interface Format
Parameters:
request - request to be performed, never null
response - sink for writing the response, never null
Throws:
Exception

doGetPropertyValue

public void doGetPropertyValue(GetPropertyValue request,
                               HttpResponseBuffer response)
                        throws Exception
Description copied from interface: Format
Invoked by the WebFeatureService to perform a GetPropertyValue request for this format.

Specified by:
doGetPropertyValue in interface Format
response - sink for writing the response, never null
Throws:
Exception


Copyright © 2011. All Rights Reserved.