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:
- java.io.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
Method Summary |
static DatabaseDataSource |
createDatabaseSource(org.w3c.dom.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 java.util.Map<java.lang.String,java.lang.String> |
parseAddedParameters(org.w3c.dom.Node vendor)
|
WMSConfiguration |
parseConfiguration()
Creates a class representation of the document. |
protected AbstractDataSource[] |
parseDataSources(org.w3c.dom.Element layerElem,
java.lang.String layerName,
ScaleHint scaleHint)
|
WMSDeegreeParams |
parseDeegreeParams(org.w3c.dom.Node root)
Creates a class representation of the deegreeParams - section. |
protected Dimension[] |
parseDimensions(org.w3c.dom.Element layerElem)
|
protected ScaleHint |
parseDSScaleHint(org.w3c.dom.Element layerElem,
ScaleHint scaleHint)
parses the ScaleHint for a data source |
protected Layer |
parseLayers(org.w3c.dom.Element layerElem,
Layer parent,
ScaleHint scaleHint)
returns the layers offered by the WMS |
(package private) static java.util.List<java.lang.String> |
parsePassedParameters(org.w3c.dom.Node vendor)
|
protected Style[] |
parseStyles(org.w3c.dom.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEEGREEWMSNS
protected static final java.net.URI DEEGREEWMSNS
WMSConfigurationDocument
public WMSConfigurationDocument()
resetCapabilitiesCache
public static void resetCapabilitiesCache()
createEmptyDocument
public void createEmptyDocument()
throws java.io.IOException,
org.xml.sax.SAXException
- Creates a skeleton capabilities document that contains the mandatory elements only.
- Overrides:
createEmptyDocument
in class WMSCapabilitiesDocument
- Throws:
java.io.IOException
org.xml.sax.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(org.w3c.dom.Node root)
throws XMLParsingException,
java.net.MalformedURLException
- Creates a class representation of the
deegreeParams
- section.
- Parameters:
root
-
- Returns:
- the deegree params
- Throws:
XMLParsingException
java.net.MalformedURLException
parseLayers
protected Layer parseLayers(org.w3c.dom.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(org.w3c.dom.Element layerElem)
throws XMLParsingException
- Overrides:
parseDimensions
in class WMSCapabilitiesDocument
- Returns:
- the dimensions
- Throws:
XMLParsingException
parseDataSources
protected AbstractDataSource[] parseDataSources(org.w3c.dom.Element layerElem,
java.lang.String layerName,
ScaleHint scaleHint)
throws XMLParsingException
- Parameters:
layerElem
-
- Returns:
- the data sources
- Throws:
XMLParsingException
parseDSScaleHint
protected ScaleHint parseDSScaleHint(org.w3c.dom.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 java.util.List<java.lang.String> parsePassedParameters(org.w3c.dom.Node vendor)
throws XMLParsingException
- Parameters:
vendor
-
- Returns:
- the parsed list
- Throws:
XMLParsingException
parseAddedParameters
static java.util.Map<java.lang.String,java.lang.String> parseAddedParameters(org.w3c.dom.Node vendor)
throws XMLParsingException
- Parameters:
vendor
-
- Returns:
- the parsed map
- Throws:
XMLParsingException
createDatabaseSource
public static DatabaseDataSource createDatabaseSource(org.w3c.dom.Node node,
boolean failOnEx,
boolean queryable,
QualifiedName name,
ScaleHint scaleHint,
Geometry validArea,
int reqTimeLimit)
throws java.lang.Exception
- Parameters:
node
- failOnEx
- queryable
- name
- scaleHint
- validArea
- reqTimeLimit
-
- Returns:
DatabaseDataSource
- Throws:
java.lang.Exception
parseStyles
protected Style[] parseStyles(org.w3c.dom.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