org.vfny.geoserver.requests
Class CapabilitiesHandler

java.lang.Object
  extended byorg.xml.sax.helpers.XMLFilterImpl
      extended byorg.vfny.geoserver.requests.CapabilitiesHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class CapabilitiesHandler
extends org.xml.sax.helpers.XMLFilterImpl
implements org.xml.sax.ContentHandler

A SAX content handler that acquires a GetCapabilities request from an incoming XML stream.


Constructor Summary
CapabilitiesHandler()
           
 
Method Summary
 CapabilitiesRequest getRequest()
          Returns the GetCapabilities 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 version and service tags, as required.
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, 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, startPrefixMapping
 

Constructor Detail

CapabilitiesHandler

public CapabilitiesHandler()
Method Detail

getRequest

public CapabilitiesRequest getRequest()
Returns the GetCapabilities request.

Returns:
GetCapabilities request.

startElement

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
Notes the start of the element and sets version and service tags, as required.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Parameters:
namespaceURI - URI for namespace appended to element.
localName - Local name of element.
rawName - Raw name of element.
atts - Element attributes.
Throws:
org.xml.sax.SAXException - For any standard SAX errors.