|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.String |
FORMAT_FEATURECOLLECTION
Serialized java object format (deegree specific extension) * |
protected int |
maxFeatures
|
protected java.lang.String |
outputFormat
|
protected java.util.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()
Creates an uninitialized GetFeature instance. |
(package private) |
GetFeature(java.lang.String version,
java.lang.String id,
java.lang.String handle,
GetFeature.RESULT_TYPE resultType,
java.lang.String outputFormat,
int maxFeatures,
int startPosition,
int traverseXLinkDepth,
int traverseXLinkExpiry,
Query[] queries,
java.util.Map<java.lang.String,java.lang.String> vendorSpecificParam)
Creates a new GetFeature instance. |
Method Summary | |
---|---|
static GetFeature |
create(java.util.Map<java.lang.String,java.lang.String> kvp)
Creates a new GetFeature request from the given map. |
static GetFeature |
create(java.lang.String id,
org.w3c.dom.Element root)
Creates a new GetFeature instance from a document that contains the DOM representation of the
request. |
static GetFeature |
create(java.lang.String id,
java.lang.String request)
Creates a new GetFeature instance from the given key-value pair encoded request. |
static GetFeature |
create(java.lang.String version,
java.lang.String id,
GetFeature.RESULT_TYPE resultType,
java.lang.String outputFormat,
java.lang.String handle,
int maxFeatures,
int startPosition,
int traverseXLinkDepth,
int traverseXLinkExpiry,
Query[] queries)
Creates a new GetFeature instance from the given parameters. |
protected static java.util.Map<QualifiedName,PropertyPath[]> |
extractPropNames(java.util.Map<java.lang.String,java.lang.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. |
java.lang.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 |
guessAllMissingNamespaces(WFService wfs)
Adds missing namespaces to requested feature type names, property names, filter properties and sort properties. |
void |
guessMissingTypeNameNamespaces(WFService wfs)
Adds missing namespaces in the names of requested feature types. |
void |
setMaxFeatures(int max)
|
void |
setQueries(Query[] query)
sets the |
java.lang.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 java.lang.String FORMAT_FEATURECOLLECTION
protected GetFeature.RESULT_TYPE resultType
protected java.lang.String outputFormat
protected int maxFeatures
protected java.util.List<Query> queries
protected int startPosition
Constructor Detail |
---|
GetFeature(java.lang.String version, java.lang.String id, java.lang.String handle, GetFeature.RESULT_TYPE resultType, java.lang.String outputFormat, int maxFeatures, int startPosition, int traverseXLinkDepth, int traverseXLinkExpiry, Query[] queries, java.util.Map<java.lang.String,java.lang.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
- indicates the depth to which nested property XLink linking element locator attribute (href) XLinks are
traversed and resolved if possible (not implemented yet, use -1 as default)traverseXLinkExpiry
- indicates how long a Web Feature Service should wait to receive a response to a nested GetGmlObject
request (not implemented yet, use 0 as default)queries
- vendorSpecificParam
- protected GetFeature()
GetFeature
instance.
Method Detail |
---|
public static GetFeature create(java.lang.String version, java.lang.String id, GetFeature.RESULT_TYPE resultType, java.lang.String outputFormat, java.lang.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(java.lang.String id, org.w3c.dom.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(java.lang.String id, java.lang.String request) throws InconsistentRequestException, InvalidParameterValueException, MissingParameterValueException
GetFeature
instance from the given key-value pair encoded request.
id
- request identifierrequest
-
GetFeature
request
InvalidParameterValueException
InconsistentRequestException
MissingParameterValueException
public static GetFeature create(java.util.Map<java.lang.String,java.lang.String> kvp) throws InconsistentRequestException, InvalidParameterValueException, MissingParameterValueException
GetFeature
request from the given map.
kvp
- key-value pairs, keys have to be uppercase
GetFeature
request
InvalidParameterValueException
InconsistentRequestException
MissingParameterValueException
protected static java.util.Map<QualifiedName,PropertyPath[]> extractPropNames(java.util.Map<java.lang.String,java.lang.String> kvp, QualifiedName[] typeNames) throws InvalidParameterValueException
kvp
- typeNames
-
InvalidParameterValueException
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.
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 void guessMissingTypeNameNamespaces(WFService wfs)
If the QualifiedName
of a requested type has a null namespace, the first qualified feature type name of
the given WFService
with the same local name is used instead.
Note: The method changes this request (the feature type names) and should only be called by the
WFSHandler
class.
wfs
- WFService
instance that is used for the lookup of proper (qualified) feature type namespublic void guessAllMissingNamespaces(WFService wfs)
Note: The method changes the request and should only be called by the WFSHandler
class.
wfs
- WFService
instance that is used for the lookup of proper (qualified) feature and property
namespublic java.lang.String toString()
toString
in class AbstractOGCWebServiceRequest
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org