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

    Fields
    Modifier and Type
    Field
    Description
    protected final org.geotools.data.wfs.internal.WFSConfig
     

    Fields inherited from class org.geotools.data.ows.AbstractOpenWebService

    capabilities, headers, hints, info, resourceInfo, serverURL, specification, specs
  • Constructor Summary

    Constructors
    Constructor
    Description
    WFSClient(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 Type
    Method
    Description
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    org.geotools.data.wfs.internal.DescribeFeatureTypeRequest
     
    org.geotools.data.wfs.internal.DescribeStoredQueriesRequest
     
     
    protected org.geotools.data.wfs.WFSServiceInfo
     
    protected org.geotools.data.wfs.internal.FeatureTypeInfo
    createInfo(QName typeName)
     
    org.geotools.data.wfs.internal.ListStoredQueriesRequest
     
    org.geotools.data.wfs.internal.TransactionRequest
     
     
    org.geotools.geometry.jts.ReferencedEnvelope
    getBounds(QName typeName, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs)
     
    org.geotools.data.wfs.internal.WFSGetCapabilities
     
     
    org.geotools.data.wfs.internal.WFSConfig
     
    org.geotools.api.referencing.crs.CoordinateReferenceSystem
    getDefaultCRS(QName typeName)
     
    Utillizing DescribeFeatureTypeRequest to create a URL, but make sure to use a GET method
    org.geotools.data.wfs.WFSServiceInfo
     
     
    protected org.geotools.data.wfs.internal.WFSStrategy
     
    protected org.geotools.data.ows.Response
    internalIssueRequest(org.geotools.data.ows.Request request)
     
    org.geotools.data.wfs.internal.ComplexGetFeatureResponse
    Issue a GetFeature request that will not be treated as SimpleFeatureType
    org.geotools.data.wfs.internal.GetCapabilitiesResponse
    issueRequest(org.geotools.data.ows.GetCapabilitiesRequest request)
     
    org.geotools.data.wfs.internal.DescribeFeatureTypeResponse
    issueRequest(org.geotools.data.wfs.internal.DescribeFeatureTypeRequest request)
     
    org.geotools.data.wfs.internal.DescribeStoredQueriesResponse
    issueRequest(org.geotools.data.wfs.internal.DescribeStoredQueriesRequest request)
     
    org.geotools.data.wfs.internal.GetFeatureResponse
    Issue a GetFeature request that have a SimpleFeatureType in request.getFullType()
    org.geotools.data.wfs.internal.ListStoredQueriesResponse
    issueRequest(org.geotools.data.wfs.internal.ListStoredQueriesRequest request)
     
    org.geotools.data.wfs.internal.TransactionResponse
    issueTransaction(org.geotools.data.wfs.internal.TransactionRequest request)
     
    protected void
     
    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.
    boolean
     
    boolean
     

    Methods inherited from class org.geotools.data.ows.AbstractOpenWebService

    getHints, getHTTPClient, getInfo, negotiateVersion, setHints, setHttpClient, setLoggingLevel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      IOException
      org.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:
      IOException
      org.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:
      getCapabilities in class org.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
    • getInfo

      public org.geotools.data.wfs.WFSServiceInfo getInfo()
      Overrides:
      getInfo in class org.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
    • createInfo

      protected org.geotools.data.wfs.WFSServiceInfo createInfo()
      Specified by:
      createInfo in class org.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
    • createInfo

      protected org.geotools.data.wfs.internal.FeatureTypeInfo createInfo(QName typeName)
      Specified by:
      createInfo in class org.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
    • setupSpecifications

      protected void setupSpecifications()
      Specified by:
      setupSpecifications in class org.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
    • getRemoteTypeNames

      public Set<QName> getRemoteTypeNames()
    • 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 org.geotools.geometry.jts.ReferencedEnvelope getBounds(QName typeName, org.geotools.api.referencing.crs.CoordinateReferenceSystem targetCrs)
    • canCount

      public boolean canCount()
    • createGetFeatureRequest

      public GetFeatureRequest createGetFeatureRequest()
    • internalIssueRequest

      protected org.geotools.data.ows.Response internalIssueRequest(org.geotools.data.ows.Request request) throws IOException
      Overrides:
      internalIssueRequest in class org.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:
      issueRequest in class org.geotools.data.ows.AbstractOpenWebService<org.geotools.data.wfs.internal.WFSGetCapabilities,QName>
      Throws:
      IOException
      org.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(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(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

      public URL getDescribeFeatureTypeGetURL(QName name)
      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:
      • org.geotools.data.wfs.internal.WFSStrategy#splitFilters(org.geotools.api.filter.Filter)
    • getDefaultCRS

      public org.geotools.api.referencing.crs.CoordinateReferenceSystem getDefaultCRS(QName typeName)
    • getAxisOrderFilter

      public String getAxisOrderFilter()
    • getCapabilitiesURL

      public URL getCapabilitiesURL()
    • getConfig

      public org.geotools.data.wfs.internal.WFSConfig getConfig()