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 TypeMethodDescriptionbooleancanCount()booleanbooleancanLimit()booleanbooleanbooleancanSort()protected WFSServiceInfoImplemented by a subclass to describe serviceprotected FeatureTypeInfocreateInfo(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 WFSStrategyprotected ResponseinternalIssueRequest(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) booleanprotected voidSets 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.booleanbooleansupportsTransaction(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:
IOExceptionServiceException
-
WFSClient
public WFSClient(URL capabilitiesURL, HTTPClient httpClient, WFSConfig config, WFSGetCapabilities capabilities) throws IOException, ServiceException - Throws:
IOExceptionServiceException
-
-
Method Details
-
getStrategy
-
getCapabilities
Description copied from class:AbstractOpenWebServiceGet 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:
getCapabilitiesin classAbstractOpenWebService<WFSGetCapabilities,QName> - Returns:
- a Capabilities object, representing the Capabilities of the server
-
getInfo
Description copied from class:AbstractOpenWebServiceDescription of this service.Provides a very quick description of the service, for more information please review the capabilitie document.
- Overrides:
getInfoin classAbstractOpenWebService<WFSGetCapabilities,QName> - Returns:
- description of this service.
-
createInfo
Description copied from class:AbstractOpenWebServiceImplemented by a subclass to describe service- Specified by:
createInfoin classAbstractOpenWebService<WFSGetCapabilities,QName> - Returns:
- ServiceInfo
-
createInfo
- Specified by:
createInfoin classAbstractOpenWebService<WFSGetCapabilities,QName>
-
setupSpecifications
protected void setupSpecifications()Description copied from class:AbstractOpenWebServiceSets up the specifications/versions that this server is capable of communicating with.- Specified by:
setupSpecificationsin 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:AbstractOpenWebServiceIssues 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:
internalIssueRequestin 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:
issueRequestin classAbstractOpenWebService<WFSGetCapabilities,QName> - Throws:
IOExceptionServiceException
-
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
-