|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.ogcwebservices.AbstractOGCWebServiceRequest
org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest
org.deegree.ogcwebservices.wfs.operation.GetFeature
public class GetFeature
Represents a GetFeature
request to a web feature service.
The GetFeature operation allows the retrieval of features from a web feature service. A GetFeature request is processed by a WFS and when the value of the outputFormat attribute is set to text/gml; subtype=gml/3.1.1, a GML instance document, containing the result set, is returned to the client.
Nested Class Summary | |
---|---|
static class |
GetFeature.RESULT_TYPE
Known result types. |
Field Summary | |
---|---|
static String |
FORMAT_FEATURECOLLECTION
Serialized java object format (deegree specific extension) * |
protected int |
maxFeatures
|
protected String |
outputFormat
|
protected List<Query> |
queries
|
protected GetFeature.RESULT_TYPE |
resultType
|
protected int |
startPosition
|
Fields inherited from class org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest |
---|
FORMAT_GML2, FORMAT_GML2_WFS100, FORMAT_GML3, FORMAT_XML |
Constructor Summary | |
---|---|
protected |
GetFeature()
|
(package private) |
GetFeature(String version,
String id,
String handle,
GetFeature.RESULT_TYPE resultType,
String outputFormat,
int maxFeatures,
int startPosition,
int traverseXLinkDepth,
int traverseXLinkExpiry,
Query[] queries,
Map<String,String> vendorSpecificParam)
Creates a new GetFeature instance. |
Method Summary | |
---|---|
static GetFeature |
create(Map<String,String> kvp)
Creates a new GetFeature request from the given map. |
static GetFeature |
create(String id,
Element root)
Creates a new GetFeature instance from a document that contains the DOM representation of the
request. |
static GetFeature |
create(String id,
String request)
Creates a new GetFeature instance from the given key-value pair encoded request. |
static GetFeature |
create(String version,
String id,
GetFeature.RESULT_TYPE resultType,
String outputFormat,
String handle,
int maxFeatures,
int startPosition,
int traverseXLinkDepth,
int traverseXLinkExpiry,
Query[] queries)
Creates a new GetFeature instance from the given parameters. |
protected static Map<QualifiedName,PropertyPath[]> |
extractPropNames(Map<String,String> kvp,
QualifiedName[] typeNames)
Extracts the PROPERTYNAME parameter and assigns them to the requested type names. |
int |
getMaxFeatures()
The optional maxFeatures attribute can be used to limit the number of features that a GetFeature request retrieves. |
String |
getOutputFormat()
Returns the output format. |
Query[] |
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. |
GetFeature.RESULT_TYPE |
getResultType()
Returns the desired result type of the GetFeature operation. |
int |
getStartPosition()
The startPosition parameter identifies the first result set entry to be returned specified the default is the first record. |
int |
getTraverseXLinkDepth()
The optional traverseXLinkDepth attribute indicates the depth to which nested property XLink linking element locator attribute (href) XLinks in all properties of the selected feature(s) are traversed and resolved if possible. |
int |
getTraverseXLinkExpiry()
The traverseXLinkExpiry attribute is specified in minutes. |
void |
setMaxFeatures(int max)
|
void |
setQueries(Query[] query)
sets the |
String |
toString()
|
Methods inherited from class org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest |
---|
checkServiceParameter, checkVersionParameter, extractBBOXFilter, extractFilters, extractNamespaceParameter, extractTypeNames, getHandle, getServiceName |
Methods inherited from class org.deegree.ogcwebservices.AbstractOGCWebServiceRequest |
---|
getId, getParam, getParamAsInt, getParamValues, getRequestParameter, getRequiredParam, getVendorSpecificParameter, getVendorSpecificParameters, getVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FORMAT_FEATURECOLLECTION
protected GetFeature.RESULT_TYPE resultType
protected String outputFormat
protected int maxFeatures
protected List<Query> queries
protected int startPosition
Constructor Detail |
---|
GetFeature(String version, String id, String handle, GetFeature.RESULT_TYPE resultType, String outputFormat, int maxFeatures, int startPosition, int traverseXLinkDepth, int traverseXLinkExpiry, Query[] queries, Map<String,String> vendorSpecificParam)
GetFeature
instance.
version
- request versionid
- id of the requesthandle
- resultType
- desired result type (results | hits)outputFormat
- requested result formatmaxFeatures
- startPosition
- deegree specific parameter defining where to start considering featurestraverseXLinkDepth
- traverseXLinkExpiry
- queries
- vendorSpecificParam
- protected GetFeature()
Method Detail |
---|
public static GetFeature create(String version, String id, GetFeature.RESULT_TYPE resultType, String outputFormat, String handle, int maxFeatures, int startPosition, int traverseXLinkDepth, int traverseXLinkExpiry, Query[] queries)
GetFeature
instance from the given parameters.
version
- request versionid
- id of the requestresultType
- desired result type (results | hits)outputFormat
- requested result formathandle
- maxFeatures
- default = -1 (all features)startPosition
- default = 0 (starting at the first feature)traverseXLinkDepth
- traverseXLinkExpiry
- queries
- a set of Query objects that describes the query to perform
GetFeature
requestpublic static GetFeature create(String id, Element root) throws OGCWebServiceException
GetFeature
instance from a document that contains the DOM representation of the
request.
id
- of the requestroot
- element that contains the DOM representation of the request
GetFeature
request
OGCWebServiceException
public static GetFeature create(String id, String request) throws InconsistentRequestException, InvalidParameterValueException
GetFeature
instance from the given key-value pair encoded request.
id
- request identifierrequest
-
GetFeature
request
InvalidParameterValueException
InconsistentRequestException
public static GetFeature create(Map<String,String> kvp) throws InconsistentRequestException, InvalidParameterValueException
GetFeature
request from the given map.
kvp
- key-value pairs, keys have to be uppercase
GetFeature
request
InvalidParameterValueException
InconsistentRequestException
protected static Map<QualifiedName,PropertyPath[]> extractPropNames(Map<String,String> kvp, QualifiedName[] typeNames) throws InvalidParameterValueException
kvp
- typeNames
-
InvalidParameterValueException
public 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.
public Query[] getQuery()
only used for xml-coded requests
public void setQueries(Query[] query)
query
- public int getMaxFeatures()
public void setMaxFeatures(int max)
max
- getMaxFeatures()
public int getStartPosition()
public GetFeature.RESULT_TYPE getResultType()
public int getTraverseXLinkDepth()
public int getTraverseXLinkExpiry()
public String toString()
toString
in class AbstractOGCWebServiceRequest
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net