|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGml31GetFeatureResponseParserFactory
public class Gml31GetFeatureResponseParserFactory
A WFS response parser factory for GetFeature requests in text/xml; subtype=gml/3.1.1
output format.
Constructor Summary | |
---|---|
Gml31GetFeatureResponseParserFactory()
|
Method Summary | |
---|---|
boolean |
canProcess(EObject request)
Checks if this factory can create a parser for the potential responses of the given WFS request. |
WFSResponseParser |
createParser(WFS_1_1_0_DataStore wfs,
WFSResponse response)
Returns either a FeatureCollectionParser or an ExceptionReportParser
depending on what the server returned. |
boolean |
isAvailable()
Indicates whether the factory instance is able to create parser instances. |
protected boolean |
isSupportedOutputFormat(String outputFormat)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gml31GetFeatureResponseParserFactory()
Method Detail |
---|
public boolean isAvailable()
WFSResponseParserFactory
isAvailable
in interface WFSResponseParserFactory
true
if there's nothing preventing the creation of the parsers this factory
should produceWFSResponseParserFactory.isAvailable()
public boolean canProcess(EObject request)
For instance, this factory can create a parser as long as the request is a
GetFeature
request and the request output format matches "text/xml; subtype=gml/3.1.1"
.
canProcess
in interface WFSResponseParserFactory
true
if this factory can create a parser for the responses of the given
requestWFSResponseParserFactory#canProcess(WFSOperationType, String)
protected boolean isSupportedOutputFormat(String outputFormat)
public WFSResponseParser createParser(WFS_1_1_0_DataStore wfs, WFSResponse response) throws IOException
FeatureCollectionParser
or an ExceptionReportParser
depending on what the server returned.
Ideally, the decision should only be taken based on the WFS response's content-type HTTP header. Truth is, some WFS implementations does not set proper HTTP response headers so a bit of an heuristic may be needed in order to identify the actual response.
createParser
in interface WFSResponseParserFactory
wfs
- the data store that issued the request that produced the given response
response
- the handle to the response contents the WFS sent
WFSResponseParser
that can deal with the given WFS response
IOException
WFSResponseParserFactory.createParser(WFS_1_1_0_DataStore, WFSResponse)
,
FeatureCollectionParser
,
ExceptionReportParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |