org.vfny.geoserver.requests.wfs
Class TransactionFilterHandler

java.lang.Object
  extended byorg.xml.sax.helpers.XMLFilterImpl
      extended byorg.geotools.filter.FilterFilter
          extended byorg.vfny.geoserver.requests.wfs.TransactionFilterHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.geotools.gml.GMLHandlerFeature, org.geotools.gml.GMLHandlerJTS, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class TransactionFilterHandler
extends org.geotools.filter.FilterFilter
implements org.geotools.gml.GMLHandlerFeature

Uses SAX to extact a Transactional request from and incoming XML stream. This class handles what should be done with geometries, if they should be passed to become part of a Feature, or if they should be an attribute in the Filter. These set of classes are fairly clunky and could probably be rewritten in geotools.


Field Summary
 
Fields inherited from class org.geotools.filter.FilterFilter
insideFilter
 
Constructor Summary
TransactionFilterHandler(TransactionHandler parent, org.geotools.feature.FeatureType schema)
          Empty constructor.
 
Method Summary
 void feature(org.geotools.feature.Feature feature)
          Recieves the feature for an insert request.
 void geometry(com.vividsolutions.jts.geom.Geometry geometry)
          Recieves the geometry from a child, and either passes it on to FilterFilter to add to the filter, or if not in a filter then it goes to the transaction handler.
 
Methods inherited from class org.geotools.filter.FilterFilter
characters, convertType, endElement, startElement
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Constructor Detail

TransactionFilterHandler

public TransactionFilterHandler(TransactionHandler parent,
                                org.geotools.feature.FeatureType schema)
Empty constructor.

Parameters:
parent - The handler to pass filters and features to.
schema - The schema (not used, this needs to be redone in geotools)
Method Detail

geometry

public void geometry(com.vividsolutions.jts.geom.Geometry geometry)
Recieves the geometry from a child, and either passes it on to FilterFilter to add to the filter, or if not in a filter then it goes to the transaction handler.

Specified by:
geometry in interface org.geotools.gml.GMLHandlerJTS
Parameters:
geometry - called by a child filter when it can not deal with it.

feature

public void feature(org.geotools.feature.Feature feature)
Recieves the feature for an insert request. Just passes it up to the transaction handler.

Specified by:
feature in interface org.geotools.gml.GMLHandlerFeature
Parameters:
feature - The feature read by child parsers.