Package org.geotools.data.wfs.internal
Class WFSClient
- Object
-
- AbstractOpenWebService<WFSGetCapabilities,QName>
-
- WFSClient
-
public class WFSClient extends AbstractOpenWebService<WFSGetCapabilities,QName>
-
-
Field Summary
Fields Modifier and Type Field Description protected WFSConfig
config
-
Fields inherited from class AbstractOpenWebService
capabilities, headers, hints, info, resourceInfo, serverURL, specification, specs
-
-
Constructor Summary
Constructors Constructor Description WFSClient(URL capabilitiesURL, HTTPClient httpClient, WFSConfig config)
WFSClient(URL capabilitiesURL, HTTPClient httpClient, WFSConfig config, WFSGetCapabilities capabilities)
-
Method Summary
-
Methods inherited from class AbstractOpenWebService
getHints, getHTTPClient, getInfo, negotiateVersion, setHints, setHttpClient, setLoggingLevel
-
-
-
-
Field Detail
-
config
protected final WFSConfig config
-
-
Constructor Detail
-
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 Detail
-
getStrategy
protected WFSStrategy getStrategy()
-
getCapabilities
public WFSGetCapabilities 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
public WFSServiceInfo 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
protected WFSServiceInfo createInfo()
Description copied from class:AbstractOpenWebService
Implemented by a subclass to describe service- Specified by:
createInfo
in classAbstractOpenWebService<WFSGetCapabilities,QName>
- Returns:
- ServiceInfo
-
createInfo
protected FeatureTypeInfo createInfo(QName typeName)
- 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>
-
supportsTransaction
public boolean supportsTransaction(QName typeName)
-
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
public ReferencedEnvelope getBounds(QName typeName, CoordinateReferenceSystem targetCrs)
-
canCount
public boolean canCount()
-
createGetFeatureRequest
public GetFeatureRequest createGetFeatureRequest()
-
internalIssueRequest
protected Response internalIssueRequest(Request request) throws IOException
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
public ListStoredQueriesResponse issueRequest(ListStoredQueriesRequest request) throws IOException
- Throws:
IOException
-
issueRequest
public DescribeStoredQueriesResponse issueRequest(DescribeStoredQueriesRequest request) throws IOException
- Throws:
IOException
-
createTransaction
public TransactionRequest createTransaction()
-
issueTransaction
public TransactionResponse issueTransaction(TransactionRequest request) throws IOException
- Throws:
IOException
-
issueRequest
public GetFeatureResponse issueRequest(GetFeatureRequest request) throws IOException
Issue a GetFeature request that have a SimpleFeatureType in request.getFullType()- Throws:
IOException
-
issueComplexRequest
public ComplexGetFeatureResponse issueComplexRequest(GetFeatureRequest request) throws IOException
Issue a GetFeature request that will not be treated as SimpleFeatureType- Throws:
IOException
-
createDescribeFeatureTypeRequest
public DescribeFeatureTypeRequest createDescribeFeatureTypeRequest()
-
getDescribeFeatureTypeGetURL
public URL getDescribeFeatureTypeGetURL(QName name)
Utillizing DescribeFeatureTypeRequest to create a URL, but make sure to use a GET method
-
createListStoredQueriesRequest
public ListStoredQueriesRequest createListStoredQueriesRequest()
-
createDescribeStoredQueriesRequest
public DescribeStoredQueriesRequest createDescribeStoredQueriesRequest()
-
issueRequest
public DescribeFeatureTypeResponse issueRequest(DescribeFeatureTypeRequest request) throws IOException
- Throws:
IOException
-
splitFilters
public Filter[] splitFilters(QName typeName, Filter filter)
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:
WFSStrategy.splitFilters(QName, Filter)
-
getDefaultCRS
public CoordinateReferenceSystem getDefaultCRS(QName typeName)
-
getAxisOrderFilter
public String getAxisOrderFilter()
-
getCapabilitiesURL
public URL getCapabilitiesURL()
-
getConfig
public WFSConfig getConfig()
-
-