|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.protocol.ows.client.AbstractOWSClient<WFSCapabilitiesAdapter> org.deegree.protocol.wfs.client.WFSClient
public class WFSClient
API-level client for accessing servers that implement the OpenGIS Web Feature Service (WFS) 1.0.0/1.1.0/2.0.0 protocol.
WFSClient
instance by invoking the
constructor with a URL to a WFS capabilities document. This usually is a GetCapabilities
request
(including necessary parameters) to a WFS service.
... URL capabilitiesUrl = new URL( "http://...?service=WFS&version=1.0.0&request=GetCapabilities" ); WFSClient wfsClient = new WFSClient( capabilitiesUrl ); ...Afterwards, the initialized
WFSClient
instance is bound to the specified service and WFS protocol version.
Now, it's possible to access service metadata, feature type information as well as performing queries.
#getMetadata()
allows to access service metadata announced by
the service, such as title, abstract, provider etc.
Field Summary |
---|
Fields inherited from class org.deegree.protocol.ows.client.AbstractOWSClient |
---|
capaDoc |
Constructor Summary | |
---|---|
WFSClient(URL capaUrl)
Creates a new WFSClient instance with default behavior. |
|
WFSClient(URL capaUrl,
AppSchema schema)
Creates a new WFSClient instance with options. |
Method Summary | |
---|---|
GetFeatureResponse<Feature> |
doGetFeature(GetFeature request)
Performs the given GetFeature request. |
AppSchema |
getAppSchema()
Returns the (GML) AppSchema for all FeatureType s offered by this server. |
protected WFSCapabilitiesAdapter |
getCapabilitiesAdapter(org.apache.axiom.om.OMElement root,
String versionAttr)
Returns an OWSCapabilitiesAdapter instance suitable for the specific service and version. |
GetFeatureResponse<Feature> |
getFeatures(QName ftName,
Filter filter)
Queries features of the specified feature type and with an optional filter. |
WFSFeatureType |
getFeatureType(QName ftName)
Returns (metadata of) the specified feature type offered by the service. |
List<WFSFeatureType> |
getFeatureTypes()
Returns (metadata of) all feature types offered by the service. |
GMLObject |
getGMLObject(GetGmlObject request)
|
WFSVersion |
getServiceVersion()
Returns the WFS protocol version in use. |
Methods inherited from class org.deegree.protocol.ows.client.AbstractOWSClient |
---|
doGet, doPost, getGetUrl, getGetUrls, getIdentification, getOperations, getPostUrl, getPostUrls, getProvider, isOperationSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WFSClient(URL capaUrl) throws OWSExceptionReport, XMLStreamException, IOException
WFSClient
instance with default behavior.
capaUrl
- url of a WFS capabilities document, usually this is a KVP-encoded GetCapabilities
request
to a WFS service, must not be null
OWSExceptionReport
- if the server responded with an exception report
XMLStreamException
IOException
- if a communication/network problem occuredpublic WFSClient(URL capaUrl, AppSchema schema) throws OWSExceptionReport, XMLStreamException, IOException
WFSClient
instance with options.
capaUrl
- url of a WFS capabilities document, usually this is a GetCapabilities
request to a WFS
service, must not be null
schema
- application schema that describes the feature types offered by the service, can be null
(in this case, DescribeFeatureType
requests will be performed to determine the schema)
OWSExceptionReport
- if the server responded with a service exception report
XMLStreamException
IOException
- if a communication/network problem occuredMethod Detail |
---|
public WFSVersion getServiceVersion()
null
public List<WFSFeatureType> getFeatureTypes()
null
public WFSFeatureType getFeatureType(QName ftName)
null
if no such feature type existspublic AppSchema getAppSchema() throws OWSExceptionReport, XMLStreamException, IOException
AppSchema
for all FeatureType
s offered by this server.
null
OWSExceptionReport
- if the server responded with a service exception report
IOException
XMLStreamException
public GetFeatureResponse<Feature> getFeatures(QName ftName, Filter filter) throws OWSExceptionReport, XMLStreamException, IOException, UnknownCRSException, TransformationException
ftName
- filter
-
null
IOException
XMLStreamException
TransformationException
UnknownCRSException
OWSExceptionReport
public GetFeatureResponse<Feature> doGetFeature(GetFeature request) throws OWSExceptionReport, XMLStreamException, IOException
GetFeature
request.
null
OWSExceptionReport
- if the server responded with a service exception report
XMLStreamException
IOException
public GMLObject getGMLObject(GetGmlObject request)
protected WFSCapabilitiesAdapter getCapabilitiesAdapter(org.apache.axiom.om.OMElement root, String versionAttr) throws IOException
AbstractOWSClient
OWSCapabilitiesAdapter
instance suitable for the specific service and version.
getCapabilitiesAdapter
in class AbstractOWSClient<WFSCapabilitiesAdapter>
root
- root element of the service capabilities, never null
versionAttr
- capabilities version, may be null
(for broken capabilities responses)
null
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |