|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.XMLFilterImpl org.vfny.geoserver.requests.wfs.TransactionHandler
Uses SAX to extact a Transactional request from and incoming XML stream.
Constructor Summary | |
TransactionHandler()
Empty constructor. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Checks if inside parsed element and adds its contents to appropriate variable. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName)
Notes the end of the element exists query or bounding box. |
void |
feature(org.geotools.feature.Feature feature)
Gets a feature and adds it to the list of current features, to be added to the insert request when it finishes. |
void |
filter(org.geotools.filter.Filter filter)
Gets a filter and adds it to the appropriate query (or queries). |
void |
geometry(com.vividsolutions.jts.geom.Geometry geometry)
If no children claim the geometry it comes here, and is used if we are looking for a value for a property element. |
TransactionRequest |
getRequest()
Returns the Transaction request. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes atts)
Notes the start of the element and sets type names and query attributes. |
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 |
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
Constructor Detail |
public TransactionHandler()
Method Detail |
public TransactionRequest getRequest()
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
namespaceURI
- URI for namespace appended to element.localName
- Local name of element.rawName
- Raw name of element.atts
- Element attributes.
org.xml.sax.SAXException
- When the XML is not well formed.public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
namespaceURI
- URI for namespace appended to element.localName
- Local name of element.rawName
- Raw name of element.
org.xml.sax.SAXException
- When the XML is not well formed.public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
ch
- URI for namespace appended to element.start
- Local name of element.length
- Raw name of element.
org.xml.sax.SAXException
- When the XML is not well formed.public void filter(org.geotools.filter.Filter filter) throws java.lang.RuntimeException
filter
in interface org.geotools.filter.FilterHandler
filter
- (OGC WFS) Filter from (SAX) filter.
java.lang.RuntimeException
- If trying to add a filter to an insert
subrequest.public void feature(org.geotools.feature.Feature feature)
feature
in interface org.geotools.gml.GMLHandlerFeature
feature
- to be added to the request.public void geometry(com.vividsolutions.jts.geom.Geometry geometry)
geometry
- The geometry to set as a property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |