org.deegree_impl.services.wts.configuration
Class WTSConfigurationFactory
java.lang.Object
org.deegree_impl.services.wts.configuration.WTSConfigurationFactory
- public class WTSConfigurationFactory
- extends java.lang.Object
This class parses a WTS configuration (capabilities) file and creates a
WTSConfiguration object from it.
- Version:
- $Revision: 1.13 $
- Author:
- Andreas Poth
Field Summary |
private static java.lang.String |
WTSNS
|
Method Summary |
private static java.util.HashMap |
createBackgrounds(org.w3c.dom.NodeList nl)
creates a map of background images that can be accessed by an associated
name (not the image name) |
static WTSConfiguration |
createConfiguration(java.lang.String configFileURL)
Creates a new instance of ConfigurationFactory |
static WTSConfiguration |
createConfiguration(java.net.URL url)
Creates a new instance of ConfigurationFactory |
private static void |
createFeatureCollection(org.w3c.dom.Element layer,
java.util.HashMap sourceTypes,
java.util.HashMap formatNames,
java.util.HashMap textures,
java.util.HashMap responsibleServices)
|
private static void |
createLayer(org.w3c.dom.Element layer,
java.util.HashMap sourceTypes,
java.util.HashMap formatNames,
java.util.HashMap responsibleServices)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WTSNS
private static java.lang.String WTSNS
WTSConfigurationFactory
public WTSConfigurationFactory()
createConfiguration
public static WTSConfiguration createConfiguration(java.lang.String configFileURL)
throws java.net.MalformedURLException,
XMLParsingException,
java.io.IOException,
org.xml.sax.SAXException,
InvalidAxisDefinitionException
- Creates a new instance of ConfigurationFactory
- Throws:
java.net.MalformedURLException
XMLParsingException
java.io.IOException
org.xml.sax.SAXException
InvalidAxisDefinitionException
createConfiguration
public static WTSConfiguration createConfiguration(java.net.URL url)
throws java.net.MalformedURLException,
XMLParsingException,
java.io.IOException,
org.xml.sax.SAXException,
InvalidAxisDefinitionException
- Creates a new instance of ConfigurationFactory
- Throws:
java.net.MalformedURLException
XMLParsingException
java.io.IOException
org.xml.sax.SAXException
InvalidAxisDefinitionException
createLayer
private static void createLayer(org.w3c.dom.Element layer,
java.util.HashMap sourceTypes,
java.util.HashMap formatNames,
java.util.HashMap responsibleServices)
throws java.net.MalformedURLException,
XMLParsingException,
java.io.IOException,
org.xml.sax.SAXException,
InvalidAxisDefinitionException
- Parameters:
sourceTypes
- formatNames
- responsibleServices
-
- Throws:
XMLParsingException
java.net.MalformedURLException
java.io.IOException
org.xml.sax.SAXException
InvalidAxisDefinitionException
createFeatureCollection
private static void createFeatureCollection(org.w3c.dom.Element layer,
java.util.HashMap sourceTypes,
java.util.HashMap formatNames,
java.util.HashMap textures,
java.util.HashMap responsibleServices)
throws java.net.MalformedURLException,
XMLParsingException,
java.io.IOException,
org.xml.sax.SAXException,
InvalidAxisDefinitionException
- Parameters:
sourceTypes
- formatNames
- responsibleServices
-
- Throws:
XMLParsingException
java.net.MalformedURLException
java.io.IOException
org.xml.sax.SAXException
InvalidAxisDefinitionException
createBackgrounds
private static java.util.HashMap createBackgrounds(org.w3c.dom.NodeList nl)
throws java.net.MalformedURLException,
XMLParsingException,
java.io.IOException,
org.xml.sax.SAXException
- creates a map of background images that can be accessed by an associated
name (not the image name)
- Throws:
java.net.MalformedURLException
XMLParsingException
java.io.IOException
org.xml.sax.SAXException
main
public static void main(java.lang.String[] args)