org.deegree_impl.clients.wcasclient.configuration
Class ConfigurationFactory

java.lang.Object
  extended byorg.deegree_impl.clients.wcasclient.configuration.ConfigurationFactory

public class ConfigurationFactory
extends java.lang.Object

Factory class for creating a basic catalog client configuration

----------------------------------------------------------------------

Version:
6.11.2003
Author:
Andreas Poth

Field Summary
private static java.lang.String CCNS
           
 
Constructor Summary
ConfigurationFactory()
           
 
Method Summary
private static CCatalog[] createCatalogs(org.w3c.dom.NodeList nl)
          creates the access description for all catalogs served by the client
static CSWClientConfiguration createConfiguration(java.io.Reader reader)
           
static CSWClientConfiguration createConfiguration(java.lang.String confFile)
           
private static Download createDownload(org.w3c.dom.Element elem)
          creates an object that encapsulates the required informations for downloading data through the catalog
private static CMapping createMapping(org.w3c.dom.NodeList nl)
          creates the mappings between (HTML)form fields and catalog fields
private static TextComponent createTextComponent(org.w3c.dom.Element elem)
           
private static java.util.HashMap createThesauriDesc(org.w3c.dom.NodeList nl)
          creates a map of thesauri names and associated addresses
private static WMSClientConfiguration createWMSClientConfiguration(org.w3c.dom.Element elem)
          creates the configuration for the map client(s) embedded in the catalog client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CCNS

private static final java.lang.String CCNS
See Also:
Constant Field Values
Constructor Detail

ConfigurationFactory

public ConfigurationFactory()
Method Detail

createConfiguration

public static CSWClientConfiguration createConfiguration(java.lang.String confFile)
                                                  throws org.xml.sax.SAXException,
                                                         java.io.IOException,
                                                         java.lang.Exception
Parameters:
confFile -
Returns:
Throws:
org.xml.sax.SAXException
java.io.IOException
java.lang.Exception

createConfiguration

public static CSWClientConfiguration createConfiguration(java.io.Reader reader)
                                                  throws org.xml.sax.SAXException,
                                                         java.io.IOException,
                                                         java.lang.Exception
Parameters:
reader -
Returns:
Throws:
org.xml.sax.SAXException
java.io.IOException
java.lang.Exception

createCatalogs

private static CCatalog[] createCatalogs(org.w3c.dom.NodeList nl)
                                  throws java.net.MalformedURLException,
                                         java.lang.Exception
creates the access description for all catalogs served by the client

Parameters:
nl -
Returns:
Throws:
java.net.MalformedURLException
java.lang.Exception

createMapping

private static CMapping createMapping(org.w3c.dom.NodeList nl)
creates the mappings between (HTML)form fields and catalog fields

Parameters:
nl -
Returns:

createThesauriDesc

private static java.util.HashMap createThesauriDesc(org.w3c.dom.NodeList nl)
                                             throws java.net.MalformedURLException
creates a map of thesauri names and associated addresses

Throws:
java.net.MalformedURLException

createTextComponent

private static TextComponent createTextComponent(org.w3c.dom.Element elem)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

createWMSClientConfiguration

private static WMSClientConfiguration createWMSClientConfiguration(org.w3c.dom.Element elem)
                                                            throws java.lang.Exception
creates the configuration for the map client(s) embedded in the catalog client

Throws:
java.lang.Exception

createDownload

private static Download createDownload(org.w3c.dom.Element elem)
                                throws java.lang.Exception
creates an object that encapsulates the required informations for downloading data through the catalog

Throws:
java.lang.Exception