org.deegree.ogcwebservices.wms.configuration
Class WMSConfigurationDocument
java.lang.Object
  
org.deegree.framework.xml.XMLFragment
      
org.deegree.ogcbase.OGCDocument
          
org.deegree.ogcwebservices.getcapabilities.OGCCapabilitiesDocument
              
org.deegree.ogcwebservices.wms.capabilities.WMSCapabilitiesDocument
                  
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 (Mon, 20 Jul 2009) $
 
- Author:
 
  - Markus Schneider , last edited by: $Author: aschmitz $
 
- See Also:
 - Serialized Form
 
 
 
 
 
 
| 
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.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 | 
 
 
DEEGREEWMSNS
protected static final URI DEEGREEWMSNS
WMSConfigurationDocument
public WMSConfigurationDocument()
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
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org