deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.ogcwebservices.wms.configuration
Class WMSConfigurationDocument

java.lang.Object
  extended by org.deegree.framework.xml.XMLFragment
      extended by org.deegree.ogcbase.OGCDocument
          extended by org.deegree.ogcwebservices.getcapabilities.OGCCapabilitiesDocument
              extended by org.deegree.ogcwebservices.wms.capabilities.WMSCapabilitiesDocument
                  extended by org.deegree.ogcwebservices.wms.configuration.WMSConfigurationDocument
All Implemented Interfaces:
Serializable

public class WMSConfigurationDocument
extends WMSCapabilitiesDocument

WMSConfigurationDocument is the parser class for a standard 1.1.1 WMS configuration document, ie, a capabilities document enriched by deegree parameters.

Since:
2.0
Version:
2.0, $Revision: 18525 $, $Date: 2009-07-20 10:26:25 +0200 (Mo, 20. Jul 2009) $
Author:
Markus Schneider , last edited by: $Author: aschmitz $
See Also:
Serialized Form

Field Summary
protected static URI DEEGREEWMSNS
           
 
Fields inherited from class org.deegree.ogcwebservices.getcapabilities.OGCCapabilitiesDocument
OGCNS
 
Fields inherited from class org.deegree.ogcbase.OGCDocument
GMLNS
 
Fields inherited from class org.deegree.framework.xml.XMLFragment
DEFAULT_URL, nsContext, XLNNS
 
Constructor Summary
WMSConfigurationDocument()
           
 
Method Summary
static DatabaseDataSource createDatabaseSource(Node node, boolean failOnEx, boolean queryable, QualifiedName name, ScaleHint scaleHint, Geometry validArea, int reqTimeLimit)
           
 void createEmptyDocument()
          Creates a skeleton capabilities document that contains the mandatory elements only.
(package private) static Map<String,String> parseAddedParameters(Node vendor)
           
 WMSConfiguration parseConfiguration()
          Creates a class representation of the document.
protected  AbstractDataSource[] parseDataSources(Element layerElem, String layerName, ScaleHint scaleHint)
           
 WMSDeegreeParams parseDeegreeParams(Node root)
          Creates a class representation of the deegreeParams- section.
protected  Dimension[] parseDimensions(Element layerElem)
           
protected  ScaleHint parseDSScaleHint(Element layerElem, ScaleHint scaleHint)
          parses the ScaleHint for a data source
protected  Layer parseLayers(Element layerElem, Layer parent, ScaleHint scaleHint)
          returns the layers offered by the WMS
(package private) static List<String> parsePassedParameters(Node vendor)
           
protected  Style[] parseStyles(Element layerElem)
           
static void resetCapabilitiesCache()
           
 
Methods inherited from class org.deegree.ogcwebservices.wms.capabilities.WMSCapabilitiesDocument
parseAttribution, parseAuthorityURLs, parseCapabilities, parseContactInfo, parseDataURL, parseDCP, parseExceptionFormats, parseExtents, parseFeatureListURL, parseIdentifiers, parseLatLonBoundingBox, parseLayerBoundingBoxes, parseLegendURL, parseMetadataURLs, parseOperation, parseOperationsMetadata, parseScaleHint, parseServiceIdentification, parseServiceProvider, parseStyleSheetURL, parseStyleURL, parseUserDefinedSymbolization
 
Methods inherited from class org.deegree.ogcwebservices.getcapabilities.OGCCapabilitiesDocument
parseAddress, parseMetadataLink, parsePhone, parseUpdateSequence, parseVersion
 
Methods inherited from class org.deegree.ogcbase.OGCDocument
parseCodeList, parseCodeListArray, parseExtendedPropertyPath, parseInterval, parseKeywords, parseKeywords, parseLonLatEnvelope, parseOnLineResource, parsePropertyPath, parseTimePeriod, parseTimePeriods, parseTimePositions, parseTimeSequence, parseTypedLiteral, parseValues
 
Methods inherited from class org.deegree.framework.xml.XMLFragment
getAsPrettyString, getAsString, getAttachedSchemas, getQualifiedName, getRootElement, getSystemId, hasSchema, load, load, load, parseQualifiedName, parseSimpleLink, prettyPrint, prettyPrint, resolve, setRootElement, setSystemId, setSystemId, toString, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEEGREEWMSNS

protected static final URI DEEGREEWMSNS
Constructor Detail

WMSConfigurationDocument

public WMSConfigurationDocument()
Method Detail

resetCapabilitiesCache

public static void resetCapabilitiesCache()

createEmptyDocument

public void createEmptyDocument()
                         throws IOException,
                                SAXException
Creates a skeleton capabilities document that contains the mandatory elements only.

Overrides:
createEmptyDocument in class WMSCapabilitiesDocument
Throws:
IOException
SAXException

parseConfiguration

public WMSConfiguration parseConfiguration()
                                    throws InvalidConfigurationException
Creates a class representation of the document.

Returns:
class representation of the configuration document
Throws:
InvalidConfigurationException

parseDeegreeParams

public WMSDeegreeParams parseDeegreeParams(Node root)
                                    throws XMLParsingException,
                                           MalformedURLException
Creates a class representation of the deegreeParams- section.

Parameters:
root -
Returns:
the deegree params
Throws:
XMLParsingException
MalformedURLException

parseLayers

protected Layer parseLayers(Element layerElem,
                            Layer parent,
                            ScaleHint scaleHint)
                     throws XMLParsingException,
                            UnknownCRSException
returns the layers offered by the WMS

Overrides:
parseLayers in class WMSCapabilitiesDocument
Returns:
the layer created from the given element
Throws:
XMLParsingException
UnknownCRSException

parseDimensions

protected Dimension[] parseDimensions(Element layerElem)
                               throws XMLParsingException
Overrides:
parseDimensions in class WMSCapabilitiesDocument
Returns:
the dimensions
Throws:
XMLParsingException

parseDataSources

protected AbstractDataSource[] parseDataSources(Element layerElem,
                                                String layerName,
                                                ScaleHint scaleHint)
                                         throws XMLParsingException
Parameters:
layerElem -
Returns:
the data sources
Throws:
XMLParsingException

parseDSScaleHint

protected ScaleHint parseDSScaleHint(Element layerElem,
                                     ScaleHint scaleHint)
                              throws XMLParsingException
parses the ScaleHint for a data source

Parameters:
layerElem -
scaleHint -
Returns:
the scale hint for the data source
Throws:
XMLParsingException

parsePassedParameters

static List<String> parsePassedParameters(Node vendor)
                                   throws XMLParsingException
Parameters:
vendor -
Returns:
the parsed list
Throws:
XMLParsingException

parseAddedParameters

static Map<String,String> parseAddedParameters(Node vendor)
                                        throws XMLParsingException
Parameters:
vendor -
Returns:
the parsed map
Throws:
XMLParsingException

createDatabaseSource

public static DatabaseDataSource createDatabaseSource(Node node,
                                                      boolean failOnEx,
                                                      boolean queryable,
                                                      QualifiedName name,
                                                      ScaleHint scaleHint,
                                                      Geometry validArea,
                                                      int reqTimeLimit)
                                               throws Exception
Parameters:
node -
failOnEx -
queryable -
name -
scaleHint -
validArea -
reqTimeLimit -
Returns:
DatabaseDataSource
Throws:
Exception

parseStyles

protected Style[] parseStyles(Element layerElem)
                       throws XMLParsingException
Overrides:
parseStyles in class WMSCapabilitiesDocument
Parameters:
layerElem -
Returns:
the styles
Throws:
XMLParsingException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org