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: 9345 $, $Date: 2007-12-27 17:22:25 +0100 (Do, 27 Dez 2007) $
- Author:
- Markus Schneider , last edited by: $Author: apoth $
- See Also:
- Serialized Form
Methods inherited from class org.deegree.ogcwebservices.wms.capabilities.WMSCapabilitiesDocument |
parseAttribution, parseAuthorityURLs, parseCapabilities, parseContactInfo, parseDataURL, parseDCP, parseDimensions, 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, 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
- Throws:
XMLParsingException
UnknownCRSException
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 Datasource
- Parameters:
layerElem
- scaleHint
-
- Returns:
- the scale hint for the datasource
- 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
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://deegree.sourceforge.net