|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vfny.geoserver.responses.XmlResponseHandler
org.vfny.geoserver.responses.CapabilitiesResponseHandler
org.vfny.geoserver.responses.wms.WmsCapabilitiesResponseHandler
Handler methods to print out a valid wms capabilities document from the WMS config. Will be called by a transformer in Capabilities response, and should turn itself into xml events that will then be consumed by a writer and written to the output stream (ie sent to the client).
| Field Summary | |
protected java.lang.String |
BBOX_ELEM_NAME
|
| Fields inherited from class org.vfny.geoserver.responses.XmlResponseHandler |
atts |
| Constructor Summary | |
WmsCapabilitiesResponseHandler(org.xml.sax.ContentHandler handler,
Request r)
Creates a new WmsCapabilitiesResponseHandler object. |
|
| Method Summary | |
void |
endDocument(Service config)
Closes the WMT_MS_Capabilities element. |
protected void |
endService(Service config)
Calls endElement for Service |
protected java.lang.String |
getBboxElementName()
Gets the name of the WMS bbox element name. |
protected void |
handleCapabilities(Service Service)
Handles the capabilities section - request, exceptions, vendor, sld and layers - of the caps document. |
protected void |
handleCapability(WMS config,
java.lang.String capabilityName)
Handles an individual capability, printing where it can be found and the formats it supports. |
protected void |
handleContactInformation(Service config)
Handles the contact information portion of the service section. |
protected void |
handleExceptions(WMS config)
Handles the printing of the exceptions information, prints the formats that GeoServer can return exceptions in. |
protected void |
handleFeatureType(FeatureTypeInfo ftype)
Calls super.handleFeatureType to add common FeatureType content such as Name, Title and LatLonBoundingBox, and then writes WMS specific layer properties as Styles, Scale Hint, etc. |
protected void |
handleKeywords(java.util.List kwords)
Overrides BasicConfig.handleKeywords to write the keywords list in WMS style |
protected void |
handleLayers(WMS config)
Handles the layers portion of the document. |
protected void |
handleOnlineResource(Service config)
Overrides CapabilitiesResponseHandler.handlerOnlineResource to write WMS style service online resource |
protected void |
handleOnlineResource(java.lang.String url)
Convenience method to print the appropriate xlink attributes for an online resource. |
protected void |
handleRequest(WMS config)
Handles the request portion of the document, printing out the capabilities and where to bind to them. |
void |
handleService(Service config)
Handles the service section of the document. |
protected void |
handleSLD(WMS config)
Handles the sld styling support provided by the server. |
protected void |
handleVendorSpecifics(WMS config)
Handles the vendoer specific capabilities. |
protected void |
startDocument(Service config)
Prints the dtd declaration and root WMT_MS_Capabilities declaration. |
protected void |
startService(Service config)
Starts the Service element. |
| Methods inherited from class org.vfny.geoserver.responses.CapabilitiesResponseHandler |
handleDocument, handleOnlineResouce |
| Methods inherited from class org.vfny.geoserver.responses.XmlResponseHandler |
characters, cReturn, endElement, endElement, handleSingleElem, handleSingleElem, indent, indent, setPrettyPrint, startElement, startElement, startElement, unIndent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String BBOX_ELEM_NAME
| Constructor Detail |
public WmsCapabilitiesResponseHandler(org.xml.sax.ContentHandler handler,
Request r)
handler - DOCUMENT ME!r - DOCUMENT ME!| Method Detail |
protected void startDocument(Service config)
throws org.xml.sax.SAXException
startDocument in class CapabilitiesResponseHandlerconfig - Must be an instance of WMS. If not a class cast exception
will be thrown.
org.xml.sax.SAXException - For any problems creating the SAX.
public void endDocument(Service config)
throws org.xml.sax.SAXException
config - The wms config used to start the document.
org.xml.sax.SAXException - For any problems.
protected void startService(Service config)
throws org.xml.sax.SAXException
config - The Wms config to turn into a capabilities document.
org.xml.sax.SAXException - If anything goes wrong.
protected void endService(Service config)
throws org.xml.sax.SAXException
endService in class CapabilitiesResponseHandlerconfig - The Wms config to turn into a capabilities document.
org.xml.sax.SAXException - For any problems.
public void handleService(Service config)
throws org.xml.sax.SAXException
handleService in class CapabilitiesResponseHandlerconfig - The Wms config to turn into a capabilities document.
org.xml.sax.SAXException - For any problems.
protected void handleCapabilities(Service Service)
throws org.xml.sax.SAXException
handleCapabilities in class CapabilitiesResponseHandlerService - The Wms config to turn into a capabilities document.
org.xml.sax.SAXException - If anything goes wrong.
protected void handleLayers(WMS config)
throws org.xml.sax.SAXException
config - The Wms config to handle the layers of.
org.xml.sax.SAXException - For any problems.
protected void handleFeatureType(FeatureTypeInfo ftype)
throws org.xml.sax.SAXException
handleFeatureType in class CapabilitiesResponseHandlerftype - The featureType to write out.
org.xml.sax.SAXException - For any problems.
protected void handleSLD(WMS config)
throws org.xml.sax.SAXException
config - The WMS config to get sld info from.
org.xml.sax.SAXException - For any problems.
protected void handleVendorSpecifics(WMS config)
throws org.xml.sax.SAXException
config - The global config that may contain vendor specifics.
org.xml.sax.SAXException - For any problems.
protected void handleRequest(WMS config)
throws org.xml.sax.SAXException
config - The global wms.
org.xml.sax.SAXException - For any problems.
protected void handleCapability(WMS config,
java.lang.String capabilityName)
throws org.xml.sax.SAXException
config - The wms service config.capabilityName - The name of the capability to print out.
org.xml.sax.SAXException - For any problems.
protected void handleExceptions(WMS config)
throws org.xml.sax.SAXException
config - The wms service global config.
org.xml.sax.SAXException - For any problems.
protected void handleContactInformation(Service config)
throws org.xml.sax.SAXException
config - The global service information.
org.xml.sax.SAXException - For any problems.
protected void handleKeywords(java.util.List kwords)
throws org.xml.sax.SAXException
handleKeywords in class CapabilitiesResponseHandlerkwords - A list of keywords to print out. If null or of size 0
then nothing will be printed, since the keyword(s) element is
not mandatory.
org.xml.sax.SAXException - For any problems.
protected void handleOnlineResource(Service config)
throws org.xml.sax.SAXException
config - The WMS config to write out an online resource from.
org.xml.sax.SAXException - For any problems.
protected void handleOnlineResource(java.lang.String url)
throws org.xml.sax.SAXException
url - The url to be linked to.
org.xml.sax.SAXException - For any problems.protected java.lang.String getBboxElementName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||