deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.owswatch.configs
Class OwsWatchConfigFactory

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

public class OwsWatchConfigFactory
extends 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(Element elem)
          Parses the General Config section
static OwsWatchConfig createOwsWatchConfig(Element root, String webinfPath)
           
static OwsWatchConfig createOwsWatchConfig(String filePath, String webinfPath)
           
protected static ServiceDescription createServiceConfig(Element elem, String webinfPath)
          Parses the ServiceDescription Section
protected static ServiceRequest createServiceRequest(Element elem, String webinfPath)
          Parses the Request Section in Service
protected static Map<String,Service> createServices(Element elem, String webinfPath)
          Parses the Services section
protected static ServiceVersion createServiceVersion(Element elem, String webinfPath)
          Parses the (multiple)Service section(s) in Services
protected static List<Integer> createTestIntervals(Element elem)
          Parses the TestIntervals section
protected static Map<String,User> createUsers(Element elem)
          Parses the Users section
static 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(String filePath,
                                                  String webinfPath)
                                           throws SAXException,
                                                  IOException,
                                                  XMLParsingException
Parameters:
filePath -
webinfPath -
Returns:
OwsWatchConfig
Throws:
SAXException
IOException
XMLParsingException

createOwsWatchConfig

public static OwsWatchConfig createOwsWatchConfig(Element root,
                                                  String webinfPath)
                                           throws XMLParsingException,
                                                  IOException
Parameters:
root -
webinfPath -
Returns:
OwsWatchConfig
Throws:
XMLParsingException
IOException

createGeneralConfig

protected static GeneralConfig createGeneralConfig(Element elem)
                                            throws XMLParsingException
Parses the General Config section

Parameters:
elem -
Returns:
GeneralConfig
Throws:
XMLParsingException

createServiceConfig

protected static ServiceDescription createServiceConfig(Element elem,
                                                        String webinfPath)
                                                 throws XMLParsingException,
                                                        IOException
Parses the ServiceDescription Section

Parameters:
elem -
webinfPath -
Returns:
ServiceDescription
Throws:
XMLParsingException
IOException

createUsers

protected static Map<String,User> createUsers(Element elem)
                                       throws XMLParsingException
Parses the Users section

Parameters:
elem -
Returns:
Map
Throws:
XMLParsingException

createTestIntervals

protected static List<Integer> createTestIntervals(Element elem)
                                            throws XMLParsingException
Parses the TestIntervals section

Parameters:
elem -
Returns:
List
Throws:
XMLParsingException

createServices

protected static Map<String,Service> createServices(Element elem,
                                                    String webinfPath)
                                             throws XMLParsingException,
                                                    IOException
Parses the Services section

Parameters:
elem -
webinfPath -
Returns:
Map
Throws:
XMLParsingException
IOException

createServiceVersion

protected static ServiceVersion createServiceVersion(Element elem,
                                                     String webinfPath)
                                              throws XMLParsingException,
                                                     IOException
Parses the (multiple)Service section(s) in Services

Parameters:
elem -
webinfPath -
Returns:
Service
Throws:
XMLParsingException
IOException

createServiceRequest

protected static ServiceRequest createServiceRequest(Element elem,
                                                     String webinfPath)
                                              throws XMLParsingException,
                                                     IOException
Parses the Request Section in Service

Parameters:
elem -
webinfPath -
Returns:
ServiceRequest
Throws:
XMLParsingException
IOException

getPrefix

public static 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.3 (2010/04/09 10:10 build-4-official)

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