Package org.geotools.data.wfs.internal
Class WFSClient
-
Field Summary
FieldsFields inherited from class AbstractOpenWebService
capabilities, headers, hints, info, resourceInfo, serverURL, specification, specs
-
Constructor Summary
ConstructorsConstructorDescriptionWFSClient
(URL capabilitiesURL, HTTPClient httpClient, WFSConfig config) WFSClient
(URL capabilitiesURL, HTTPClient httpClient, WFSConfig config, WFSGetCapabilities capabilities) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canCount()
boolean
boolean
canLimit()
boolean
boolean
boolean
canSort()
protected WFSServiceInfo
Implemented by a subclass to describe serviceprotected FeatureTypeInfo
createInfo
(QName typeName) getBounds
(QName typeName, CoordinateReferenceSystem targetCrs) Get the getCapabilities document.getDefaultCRS
(QName typeName) Utillizing DescribeFeatureTypeRequest to create a URL, but make sure to use a GET methodgetInfo()
Description of this service.protected WFSStrategy
protected Response
internalIssueRequest
(Request request) Issues a request to the server and returns that server's response.issueComplexRequest
(GetFeatureRequest request) Issue a GetFeature request that will not be treated as SimpleFeatureTypeissueRequest
(GetCapabilitiesRequest request) issueRequest
(DescribeFeatureTypeRequest request) issueRequest
(DescribeStoredQueriesRequest request) issueRequest
(GetFeatureRequest request) Issue a GetFeature request that have a SimpleFeatureType in request.getFullType()issueRequest
(ListStoredQueriesRequest request) issueTransaction
(TransactionRequest request) boolean
protected void
Sets up the specifications/versions that this server is capable of communicating with.Filter[]
splitFilters
(QName typeName, Filter filter) Splits the filter provided by the geotools query into the server supported and unsupported ones.boolean
boolean
supportsTransaction
(QName typeName) Methods inherited from class AbstractOpenWebService
getHints, getHTTPClient, getInfo, negotiateVersion, setHints, setHttpClient, setLoggingLevel
-
Field Details
-
config
-
-
Constructor Details
-
WFSClient
public WFSClient(URL capabilitiesURL, HTTPClient httpClient, WFSConfig config) throws IOException, ServiceException - Throws:
IOException
ServiceException
-
WFSClient
public WFSClient(URL capabilitiesURL, HTTPClient httpClient, WFSConfig config, WFSGetCapabilities capabilities) throws IOException, ServiceException - Throws:
IOException
ServiceException
-
-
Method Details
-
getStrategy
-
getCapabilities
Description copied from class:AbstractOpenWebService
Get the getCapabilities document. If there was an error parsing it during creation, it will return null (and it should have thrown an exception during creation).- Specified by:
getCapabilities
in classAbstractOpenWebService<WFSGetCapabilities,
QName> - Returns:
- a Capabilities object, representing the Capabilities of the server
-
getInfo
Description copied from class:AbstractOpenWebService
Description of this service.Provides a very quick description of the service, for more information please review the capabilitie document.
- Overrides:
getInfo
in classAbstractOpenWebService<WFSGetCapabilities,
QName> - Returns:
- description of this service.
-
createInfo
Description copied from class:AbstractOpenWebService
Implemented by a subclass to describe service- Specified by:
createInfo
in classAbstractOpenWebService<WFSGetCapabilities,
QName> - Returns:
- ServiceInfo
-
createInfo
- Specified by:
createInfo
in classAbstractOpenWebService<WFSGetCapabilities,
QName>
-
setupSpecifications
protected void setupSpecifications()Description copied from class:AbstractOpenWebService
Sets up the specifications/versions that this server is capable of communicating with.- Specified by:
setupSpecifications
in classAbstractOpenWebService<WFSGetCapabilities,
QName>
-
getRemoteTypeNames
-
supportsTransaction
-
isUseProvidedFIDSupported
public boolean isUseProvidedFIDSupported() -
canLimit
public boolean canLimit() -
canOffset
public boolean canOffset() -
canFilter
public boolean canFilter() -
canRetype
public boolean canRetype() -
canSort
public boolean canSort() -
supportsStoredQueries
public boolean supportsStoredQueries() -
getBounds
-
canCount
public boolean canCount() -
createGetFeatureRequest
-
internalIssueRequest
Description copied from class:AbstractOpenWebService
Issues a request to the server and returns that server's response. It asks the server to send the response gzipped to provide a faster transfer time.- Overrides:
internalIssueRequest
in classAbstractOpenWebService<WFSGetCapabilities,
QName> - Parameters:
request
- the request to be issued- Returns:
- a response from the server, which is created according to the specific Request
- Throws:
IOException
- if there was a problem communicating with the server
-
issueRequest
public GetCapabilitiesResponse issueRequest(GetCapabilitiesRequest request) throws IOException, ServiceException - Overrides:
issueRequest
in classAbstractOpenWebService<WFSGetCapabilities,
QName> - Throws:
IOException
ServiceException
-
issueRequest
- Throws:
IOException
-
issueRequest
public DescribeStoredQueriesResponse issueRequest(DescribeStoredQueriesRequest request) throws IOException - Throws:
IOException
-
createTransaction
-
issueTransaction
- Throws:
IOException
-
issueRequest
Issue a GetFeature request that have a SimpleFeatureType in request.getFullType()- Throws:
IOException
-
issueComplexRequest
Issue a GetFeature request that will not be treated as SimpleFeatureType- Throws:
IOException
-
createDescribeFeatureTypeRequest
-
getDescribeFeatureTypeGetURL
Utillizing DescribeFeatureTypeRequest to create a URL, but make sure to use a GET method -
createListStoredQueriesRequest
-
createDescribeStoredQueriesRequest
-
issueRequest
public DescribeFeatureTypeResponse issueRequest(DescribeFeatureTypeRequest request) throws IOException - Throws:
IOException
-
splitFilters
Splits the filter provided by the geotools query into the server supported and unsupported ones.- Returns:
- a two-element array where the first element is the supported filter and the second the one to post-process
- See Also:
-
getDefaultCRS
-
getAxisOrderFilter
-
getCapabilitiesURL
-
getConfig
-