Package org.geotools.data.wfs.internal
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 givenWFSResponse
. 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 Summary
Constructors Constructor Description WFSExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<WFSResponseFactory>
findResponseFactories(WFSOperationType operation)
Finds all suitable WFS response factories for the operation.static WFSResponseFactory
findResponseFactory(WFSRequest originatingRequest, String contentType)
Finds the most suitable WFS response factory for the given request and content-type.
-
-
-
Method Detail
-
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 factorycontentType
- 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
-
-