deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.owswatch.configs
Class OwsWatchConfigFactory

java.lang.Object
  extended by org.deegree.portal.owswatch.configs.OwsWatchConfigFactory

public class OwsWatchConfigFactory
extends java.lang.Object

This class takes the path to the config file and produce an instance of OwsWatchConfig Class

Version:
$Revision: 20271 $, $Date: 2009-10-21 13:07:15 +0200 (Mi, 21 Okt 2009) $
Author:
Moataz Elmasry, last edited by: $Author: jmays $

Method Summary
protected static GeneralConfig createGeneralConfig(org.w3c.dom.Element elem)
          Parses the General Config section
static OwsWatchConfig createOwsWatchConfig(org.w3c.dom.Element root, java.lang.String webinfPath)
           
static OwsWatchConfig createOwsWatchConfig(java.lang.String filePath, java.lang.String webinfPath)
           
protected static ServiceDescription createServiceConfig(org.w3c.dom.Element elem, java.lang.String webinfPath)
          Parses the ServiceDescription Section
protected static ServiceRequest createServiceRequest(org.w3c.dom.Element elem, java.lang.String webinfPath)
          Parses the Request Section in Service
protected static java.util.Map<java.lang.String,Service> createServices(org.w3c.dom.Element elem, java.lang.String webinfPath)
          Parses the Services section
protected static ServiceVersion createServiceVersion(org.w3c.dom.Element elem, java.lang.String webinfPath)
          Parses the (multiple)Service section(s) in Services
protected static java.util.List<java.lang.Integer> createTestIntervals(org.w3c.dom.Element elem)
          Parses the TestIntervals section
protected static java.util.Map<java.lang.String,User> createUsers(org.w3c.dom.Element elem)
          Parses the Users section
static java.lang.String getPrefix()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createOwsWatchConfig

public static OwsWatchConfig createOwsWatchConfig(java.lang.String filePath,
                                                  java.lang.String webinfPath)
                                           throws org.xml.sax.SAXException,
                                                  java.io.IOException,
                                                  XMLParsingException
Parameters:
filePath -
webinfPath -
Returns:
OwsWatchConfig
Throws:
org.xml.sax.SAXException
java.io.IOException
XMLParsingException

createOwsWatchConfig

public static OwsWatchConfig createOwsWatchConfig(org.w3c.dom.Element root,
                                                  java.lang.String webinfPath)
                                           throws XMLParsingException,
                                                  java.io.IOException
Parameters:
root -
webinfPath -
Returns:
OwsWatchConfig
Throws:
XMLParsingException
java.io.IOException

createGeneralConfig

protected static GeneralConfig createGeneralConfig(org.w3c.dom.Element elem)
                                            throws XMLParsingException
Parses the General Config section

Parameters:
elem -
Returns:
GeneralConfig
Throws:
XMLParsingException

createServiceConfig

protected static ServiceDescription createServiceConfig(org.w3c.dom.Element elem,
                                                        java.lang.String webinfPath)
                                                 throws XMLParsingException,
                                                        java.io.IOException
Parses the ServiceDescription Section

Parameters:
elem -
webinfPath -
Returns:
ServiceDescription
Throws:
XMLParsingException
java.io.IOException

createUsers

protected static java.util.Map<java.lang.String,User> createUsers(org.w3c.dom.Element elem)
                                                           throws XMLParsingException
Parses the Users section

Parameters:
elem -
Returns:
Map
Throws:
XMLParsingException

createTestIntervals

protected static java.util.List<java.lang.Integer> createTestIntervals(org.w3c.dom.Element elem)
                                                                throws XMLParsingException
Parses the TestIntervals section

Parameters:
elem -
Returns:
List
Throws:
XMLParsingException

createServices

protected static java.util.Map<java.lang.String,Service> createServices(org.w3c.dom.Element elem,
                                                                        java.lang.String webinfPath)
                                                                 throws XMLParsingException,
                                                                        java.io.IOException
Parses the Services section

Parameters:
elem -
webinfPath -
Returns:
Map
Throws:
XMLParsingException
java.io.IOException

createServiceVersion

protected static ServiceVersion createServiceVersion(org.w3c.dom.Element elem,
                                                     java.lang.String webinfPath)
                                              throws XMLParsingException,
                                                     java.io.IOException
Parses the (multiple)Service section(s) in Services

Parameters:
elem -
webinfPath -
Returns:
Service
Throws:
XMLParsingException
java.io.IOException

createServiceRequest

protected static ServiceRequest createServiceRequest(org.w3c.dom.Element elem,
                                                     java.lang.String webinfPath)
                                              throws XMLParsingException,
                                                     java.io.IOException
Parses the Request Section in Service

Parameters:
elem -
webinfPath -
Returns:
ServiceRequest
Throws:
XMLParsingException
java.io.IOException

getPrefix

public static java.lang.String getPrefix()
Returns:
Prefix of the Configurations xml file Will only work after the first call to createOwsWatchConfig, otherwise it will return null;

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org