org.deegree_impl.services.wfs.protocol
Class WFSGetFeatureRequest_Impl

java.lang.Object
  extended byorg.deegree_impl.services.OGCWebServiceRequest_Impl
      extended byorg.deegree_impl.services.wfs.protocol.WFSBasicRequest_Impl
          extended byorg.deegree_impl.services.wfs.protocol.WFSGetFeatureRequest_Impl
All Implemented Interfaces:
Marshallable, OGCWebServiceRequest, WFSBasicRequest, WFSGetFeatureRequest
Direct Known Subclasses:
WFSGetFeatureWithLockRequest_Impl, WFSGGetFeatureRequest_Impl

public class WFSGetFeatureRequest_Impl
extends WFSBasicRequest_Impl
implements WFSGetFeatureRequest, Marshallable

The GetFeature interface can be used to package one or more query descriptions into a single request. The results of all queries packaged in a GetFeature request are concatenated to produce the result set.

--------------------------------------------------------

Version:
$Revision: 1.12 $ $Date: 2004/06/16 09:38:08 $
Author:
Andreas Poth

Field Summary
private  java.util.ArrayList featureIds
           
private  Filter filter
           
private  java.lang.String handle
           
private  int maxFeatures
           
private  java.lang.String outputFormat
           
private  java.util.ArrayList propertyNames
           
private  java.util.ArrayList query
           
private  int startPosition
           
private  java.util.ArrayList typeNames
           
 
Fields inherited from class org.deegree_impl.services.wfs.protocol.WFSBasicRequest_Impl
 
Fields inherited from class org.deegree_impl.services.OGCWebServiceRequest_Impl
id, request, service, vendorSpecificParameter, version
 
Constructor Summary
WFSGetFeatureRequest_Impl(java.lang.String version, java.lang.String id, java.util.HashMap vendorSpecificParameter, WFSNative native_, java.lang.String outputFormat, java.lang.String handle, Filter filter, int maxFeatures, int startPosition, WFSQuery[] query, java.lang.String[] propertyNames, java.lang.String[] featureIds, java.lang.String[] typeNames)
          constructor initializing the class with the
 
Method Summary
 void addFeatureIds(java.lang.String featureIds)
          adds the
 void addPropertyNames(java.lang.String propertyNames)
          adds the
 void addQuery(WFSQuery query)
          adds the
 void addTypeNames(java.lang.String TypeNames)
          adds the
 java.lang.String exportAsXML()
          exports the request in its XML representation
 java.lang.String[] getFeatureIds()
          A list of feature identifiers upon which the specified operation shall be applied.
 Filter getFilter()
          A filter specification describes a set of features to operate upon.
 java.lang.String getHandle()
          The handle attribute is included to allow a client to associate a mnemonic name to the request.
 int getMaxFeatures()
          The optional maxFeatures attribute can be used to limit the number of features that a GetFeature request retrieves.
 java.lang.String getOutputFormat()
          The outputFormat attribute defines the format to use to generate the result set.
 java.lang.String[] getPropertyNames()
          The property names is used to enumerate the feature properties or attributes that should be selected.
 WFSQuery[] getQuery()
          The query defines which feature type to query, what properties to retrieve and what constraints (spatial and non-spatial) to apply to those properties.
 int getStartPosition()
          The startPosition parameter identifies the first result set entry to be returned specified the default is the first record
 java.lang.String[] getTypeNames()
          A list of feature type names to query.
 void setFeatureIds(java.lang.String[] featureIds)
          sets the
 void setFilter(Filter filter)
          sets the
 void setHandle(java.lang.String handle)
           
 void setMaxFeatures(int maxFeatures)
          sets the
 void setOutputFormat(java.lang.String outputFormat)
          sets the
 void setPropertyNames(java.lang.String[] propertyNames)
          sets the
 void setQuery(WFSQuery[] query)
          sets the
 void setStartPosition(int startPosition)
          sets the
 void setTypeNames(java.lang.String[] typeNames)
          sets the
 java.lang.String toString()
           
 
Methods inherited from class org.deegree_impl.services.wfs.protocol.WFSBasicRequest_Impl
getNative, setNative
 
Methods inherited from class org.deegree_impl.services.OGCWebServiceRequest_Impl
getId, getRequest, getRequestParameter, getService, getVendorSpecificParameter, getVendorSpecificParameters, getVersion, putVendorSpecificParameter, setId, setRequest, setService, setVendorSpecificParameter, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.services.wfs.protocol.WFSBasicRequest
getNative
 
Methods inherited from interface org.deegree.services.OGCWebServiceRequest
getId, getRequest, getRequestParameter, getService, getVendorSpecificParameter, getVendorSpecificParameters, getVersion
 

Field Detail

featureIds

private java.util.ArrayList featureIds

propertyNames

private java.util.ArrayList propertyNames

query

private java.util.ArrayList query

typeNames

private java.util.ArrayList typeNames

filter

private Filter filter

handle

private java.lang.String handle

outputFormat

private java.lang.String outputFormat

maxFeatures

private int maxFeatures

startPosition

private int startPosition
Constructor Detail

WFSGetFeatureRequest_Impl

public WFSGetFeatureRequest_Impl(java.lang.String version,
                                 java.lang.String id,
                                 java.util.HashMap vendorSpecificParameter,
                                 WFSNative native_,
                                 java.lang.String outputFormat,
                                 java.lang.String handle,
                                 Filter filter,
                                 int maxFeatures,
                                 int startPosition,
                                 WFSQuery[] query,
                                 java.lang.String[] propertyNames,
                                 java.lang.String[] featureIds,
                                 java.lang.String[] typeNames)
constructor initializing the class with the

Method Detail

getOutputFormat

public java.lang.String getOutputFormat()
The outputFormat attribute defines the format to use to generate the result set. Vendor specific formats, declared in the capabilities document are possible. The WFS-specs implies GML as default output format.

Specified by:
getOutputFormat in interface WFSGetFeatureRequest

setOutputFormat

public void setOutputFormat(java.lang.String outputFormat)
sets the


getHandle

public java.lang.String getHandle()
The handle attribute is included to allow a client to associate a mnemonic name to the request. The purpose of the handle attribute is to provide an error handling mechanism for locating a statement that might fail.

Specified by:
getHandle in interface WFSGetFeatureRequest

setHandle

public void setHandle(java.lang.String handle)
Parameters:
handle -

getQuery

public WFSQuery[] getQuery()
The query defines which feature type to query, what properties to retrieve and what constraints (spatial and non-spatial) to apply to those properties.

only used for xml-coded requests

Specified by:
getQuery in interface WFSGetFeatureRequest

addQuery

public void addQuery(WFSQuery query)
adds the


setQuery

public void setQuery(WFSQuery[] query)
sets the


getMaxFeatures

public int getMaxFeatures()
The optional maxFeatures attribute can be used to limit the number of features that a GetFeature request retrieves. Once the maxFeatures limit is reached, the result set is truncated at that point.

Specified by:
getMaxFeatures in interface WFSGetFeatureRequest

setMaxFeatures

public void setMaxFeatures(int maxFeatures)
sets the


getStartPosition

public int getStartPosition()
The startPosition parameter identifies the first result set entry to be returned specified the default is the first record

Specified by:
getStartPosition in interface WFSGetFeatureRequest

setStartPosition

public void setStartPosition(int startPosition)
sets the


getPropertyNames

public java.lang.String[] getPropertyNames()
The property names is used to enumerate the feature properties or attributes that should be selected. If no property names are specified then all properties should be fetched.

only use for name-value-pair encoded requests

Specified by:
getPropertyNames in interface WFSGetFeatureRequest

addPropertyNames

public void addPropertyNames(java.lang.String propertyNames)
adds the


setPropertyNames

public void setPropertyNames(java.lang.String[] propertyNames)
sets the


getFeatureIds

public java.lang.String[] getFeatureIds()
A list of feature identifiers upon which the specified operation shall be applied. Optional. No default.

Only used for name-value-pair encoded requests

Specified by:
getFeatureIds in interface WFSGetFeatureRequest

addFeatureIds

public void addFeatureIds(java.lang.String featureIds)
adds the


setFeatureIds

public void setFeatureIds(java.lang.String[] featureIds)
sets the


getTypeNames

public java.lang.String[] getTypeNames()
A list of feature type names to query. Optional. No default.

only used for name-value-pair encoded requests

Specified by:
getTypeNames in interface WFSGetFeatureRequest

addTypeNames

public void addTypeNames(java.lang.String TypeNames)
adds the


setTypeNames

public void setTypeNames(java.lang.String[] typeNames)
sets the


getFilter

public Filter getFilter()
A filter specification describes a set of features to operate upon. The format of the filter is defined in the OGC Filter Encoding Specification. Optional. No default. Prerequisite: TYPENAME

Specified by:
getFilter in interface WFSGetFeatureRequest

setFilter

public void setFilter(Filter filter)
sets the


exportAsXML

public java.lang.String exportAsXML()
exports the request in its XML representation

Specified by:
exportAsXML in interface Marshallable
Overrides:
exportAsXML in class WFSBasicRequest_Impl

toString

public java.lang.String toString()
Overrides:
toString in class OGCWebServiceRequest_Impl
Returns: