Package org.geotools.data.wfs.internal
Class WFSClient
java.lang.Object
org.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
org.geotools.data.wfs.internal.WFSClient
public class WFSClient
extends org.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
-
Field Summary
FieldsFields inherited from class org.geotools.data.ows.AbstractOpenWebService
capabilities, headers, hints, info, resourceInfo, serverURL, specification, specs -
Constructor Summary
ConstructorsConstructorDescriptionWFSClient(URL capabilitiesURL, org.geotools.http.HTTPClient httpClient, org.geotools.data.wfs.internal.WFSConfig config) WFSClient(URL capabilitiesURL, org.geotools.http.HTTPClient httpClient, org.geotools.data.wfs.internal.WFSConfig config, org.geotools.data.wfs.internal.WFSGetCapabilities capabilities) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCount()booleanbooleancanLimit()booleanbooleanbooleancanSort()org.geotools.data.wfs.internal.DescribeFeatureTypeRequestorg.geotools.data.wfs.internal.DescribeStoredQueriesRequestorg.geotools.data.wfs.internal.GetFeatureRequestprotected org.geotools.data.wfs.WFSServiceInfoprotected org.geotools.data.wfs.internal.FeatureTypeInfocreateInfo(QName typeName) org.geotools.data.wfs.internal.ListStoredQueriesRequestorg.geotools.data.wfs.internal.TransactionRequestorg.geotools.geometry.jts.ReferencedEnvelopeorg.geotools.data.wfs.internal.WFSGetCapabilitiesorg.geotools.data.wfs.internal.WFSConfigorg.geotools.api.referencing.crs.CoordinateReferenceSystemgetDefaultCRS(QName typeName) Utillizing DescribeFeatureTypeRequest to create a URL, but make sure to use a GET methodorg.geotools.data.wfs.WFSServiceInfogetInfo()protected org.geotools.data.wfs.internal.WFSStrategyprotected org.geotools.data.ows.ResponseinternalIssueRequest(org.geotools.data.ows.Request request) org.geotools.data.wfs.internal.ComplexGetFeatureResponseissueComplexRequest(org.geotools.data.wfs.internal.GetFeatureRequest request) Issue a GetFeature request that will not be treated as SimpleFeatureTypeorg.geotools.data.wfs.internal.GetCapabilitiesResponseissueRequest(org.geotools.data.ows.GetCapabilitiesRequest request) org.geotools.data.wfs.internal.DescribeFeatureTypeResponseissueRequest(org.geotools.data.wfs.internal.DescribeFeatureTypeRequest request) org.geotools.data.wfs.internal.DescribeStoredQueriesResponseissueRequest(org.geotools.data.wfs.internal.DescribeStoredQueriesRequest request) org.geotools.data.wfs.internal.GetFeatureResponseissueRequest(org.geotools.data.wfs.internal.GetFeatureRequest request) Issue a GetFeature request that have a SimpleFeatureType in request.getFullType()org.geotools.data.wfs.internal.ListStoredQueriesResponseissueRequest(org.geotools.data.wfs.internal.ListStoredQueriesRequest request) org.geotools.data.wfs.internal.TransactionResponseissueTransaction(org.geotools.data.wfs.internal.TransactionRequest request) protected voidorg.geotools.api.filter.Filter[]splitFilters(QName typeName, org.geotools.api.filter.Filter filter) Splits the filter provided by the geotools query into the server supported and unsupported ones.booleanbooleansupportsTransaction(QName typeName) Methods inherited from class org.geotools.data.ows.AbstractOpenWebService
getHints, getHTTPClient, getInfo, negotiateVersion, setHints, setHttpClient, setLoggingLevel
-
Field Details
-
config
protected final org.geotools.data.wfs.internal.WFSConfig config
-
-
Constructor Details
-
WFSClient
public WFSClient(URL capabilitiesURL, org.geotools.http.HTTPClient httpClient, org.geotools.data.wfs.internal.WFSConfig config) throws IOException, org.geotools.ows.ServiceException - Throws:
IOExceptionorg.geotools.ows.ServiceException
-
WFSClient
public WFSClient(URL capabilitiesURL, org.geotools.http.HTTPClient httpClient, org.geotools.data.wfs.internal.WFSConfig config, org.geotools.data.wfs.internal.WFSGetCapabilities capabilities) throws IOException, org.geotools.ows.ServiceException - Throws:
IOExceptionorg.geotools.ows.ServiceException
-
-
Method Details
-
getStrategy
protected org.geotools.data.wfs.internal.WFSStrategy getStrategy() -
getCapabilities
public org.geotools.data.wfs.internal.WFSGetCapabilities getCapabilities()- Specified by:
getCapabilitiesin classorg.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
-
getInfo
public org.geotools.data.wfs.WFSServiceInfo getInfo()- Overrides:
getInfoin classorg.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
-
createInfo
protected org.geotools.data.wfs.WFSServiceInfo createInfo()- Specified by:
createInfoin classorg.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
-
createInfo
- Specified by:
createInfoin classorg.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
-
setupSpecifications
protected void setupSpecifications()- Specified by:
setupSpecificationsin classorg.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
-
getRemoteTypeNames
-
supportsTransaction
-
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 org.geotools.geometry.jts.ReferencedEnvelope getBounds(QName typeName, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs) -
canCount
public boolean canCount() -
createGetFeatureRequest
public org.geotools.data.wfs.internal.GetFeatureRequest createGetFeatureRequest() -
internalIssueRequest
protected org.geotools.data.ows.Response internalIssueRequest(org.geotools.data.ows.Request request) throws IOException - Overrides:
internalIssueRequestin classorg.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName> - Throws:
IOException
-
issueRequest
public org.geotools.data.wfs.internal.GetCapabilitiesResponse issueRequest(org.geotools.data.ows.GetCapabilitiesRequest request) throws IOException, org.geotools.ows.ServiceException - Overrides:
issueRequestin classorg.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName> - Throws:
IOExceptionorg.geotools.ows.ServiceException
-
issueRequest
public org.geotools.data.wfs.internal.ListStoredQueriesResponse issueRequest(org.geotools.data.wfs.internal.ListStoredQueriesRequest request) throws IOException - Throws:
IOException
-
issueRequest
public org.geotools.data.wfs.internal.DescribeStoredQueriesResponse issueRequest(org.geotools.data.wfs.internal.DescribeStoredQueriesRequest request) throws IOException - Throws:
IOException
-
createTransaction
public org.geotools.data.wfs.internal.TransactionRequest createTransaction() -
issueTransaction
public org.geotools.data.wfs.internal.TransactionResponse issueTransaction(org.geotools.data.wfs.internal.TransactionRequest request) throws IOException - Throws:
IOException
-
issueRequest
public org.geotools.data.wfs.internal.GetFeatureResponse issueRequest(org.geotools.data.wfs.internal.GetFeatureRequest request) throws IOException Issue a GetFeature request that have a SimpleFeatureType in request.getFullType()- Throws:
IOException
-
issueComplexRequest
public org.geotools.data.wfs.internal.ComplexGetFeatureResponse issueComplexRequest(org.geotools.data.wfs.internal.GetFeatureRequest request) throws IOException Issue a GetFeature request that will not be treated as SimpleFeatureType- Throws:
IOException
-
createDescribeFeatureTypeRequest
public org.geotools.data.wfs.internal.DescribeFeatureTypeRequest createDescribeFeatureTypeRequest() -
getDescribeFeatureTypeGetURL
Utillizing DescribeFeatureTypeRequest to create a URL, but make sure to use a GET method -
createListStoredQueriesRequest
public org.geotools.data.wfs.internal.ListStoredQueriesRequest createListStoredQueriesRequest() -
createDescribeStoredQueriesRequest
public org.geotools.data.wfs.internal.DescribeStoredQueriesRequest createDescribeStoredQueriesRequest() -
issueRequest
public org.geotools.data.wfs.internal.DescribeFeatureTypeResponse issueRequest(org.geotools.data.wfs.internal.DescribeFeatureTypeRequest request) throws IOException - Throws:
IOException
-
splitFilters
public org.geotools.api.filter.Filter[] splitFilters(QName typeName, org.geotools.api.filter.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
-
getAxisOrderFilter
-
getCapabilitiesURL
-
getConfig
public org.geotools.data.wfs.internal.WFSConfig getConfig()
-