org.geotools.data.wfs.protocol.wfs
Interface WFSResponseParserFactory

All Known Implementing Classes:
Gml31GetFeatureResponseParserFactory

public interface WFSResponseParserFactory

A factory interface meant to be used through the usual GeoTools SPI mechanism to dynamically find out a parser capable of processing a WFS response based on the request to be sent.

Since:
2.6
Author:
Gabriel Roldan (OpenGeo)
Module:

Method Summary
 boolean canProcess(EObject request)
          Indicates whether this factory is able to produce a parser that deals with the possible responses of the given WFS request.
 WFSResponseParser createParser(WFS_1_1_0_DataStore wfs, WFSResponse response)
          Creates a response parser for the given WFS response.
 boolean isAvailable()
          Indicates whether the factory instance is able to create parser instances.
 

Method Detail

isAvailable

boolean isAvailable()
Indicates whether the factory instance is able to create parser instances.

Returns:
true if there's nothing preventing the creation of the parsers this factory should produce

canProcess

boolean canProcess(EObject request)
Indicates whether this factory is able to produce a parser that deals with the possible responses of the given WFS request.

The decision may usually be made depending on the request type, ouput format, etc

Parameters:
request -
Returns:
true if this factory can create a parser for the responses of the given request

createParser

WFSResponseParser createParser(WFS_1_1_0_DataStore wfs,
                               WFSResponse response)
                               throws IOException
Creates a response parser for the given WFS response.

Parameters:
wfs - the data store that issued the request that produced the given response
response - the handle to the response contents the WFS sent
Returns:
a WFSResponseParser that can deal with the given WFS response
Throws:
IOException


Copyright © 1996-2009 Geotools. All Rights Reserved.