Package org.geotools.data.wfs.internal
Class WFSExtensions
Object
WFSExtensions
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 factorycontentType
- content-type that came in the header of the response- Throws:
FactoryNotFoundException
- when no factory is found
-
findResponseFactories
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
-