Class WFSExtensions

Object
WFSExtensions

public class WFSExtensions extends Object
Utility class to look up for a parser that can deal with a given WFS response and process it.

This class uses the usual GeoTools SPI (Service Provider Interface) mechanism to find out a WFSResponseFactory for a given WFSResponse. As such, WFSResponseFactory implementation may live outside this plugin as long as they're declared in it's own {code /META-INF/services/org.geotools.data.wfs.protocol.wfs.WFSResponseParserFactory} text file.

Since:
2.6
Author:
Gabriel Roldan (OpenGeo)
  • Constructor Details

    • WFSExtensions

      public WFSExtensions()
  • Method Details

    • findResponseFactory

      public static WFSResponseFactory findResponseFactory(WFSRequest originatingRequest, String contentType)
      Finds the most suitable WFS response factory for the given request and content-type.
      Parameters:
      originatingRequest - the WFS request that needs a response factory
      contentType - content-type that came in the header of the response
      Throws:
      FactoryNotFoundException - when no factory is found
    • findResponseFactories

      public static List<WFSResponseFactory> findResponseFactories(WFSOperationType operation)
      Finds all suitable WFS response factories for the operation.
      Parameters:
      operation - WFS operation that we should have response for
      Returns:
      list of known factories that supports the operation