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

org.deegree.portal.owswatch
Class ServicesConfigurationFactory

java.lang.Object
  extended by org.deegree.portal.owswatch.ServicesConfigurationFactory
All Implemented Interfaces:
java.io.Serializable

public class ServicesConfigurationFactory
extends java.lang.Object
implements java.io.Serializable

This class is used to parse the services as services.xml. This xml file includes all services to be tested

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

Constructor Summary
ServicesConfigurationFactory()
           
 
Method Summary
static NamespaceContext getCnxt()
           
 java.lang.String getPrefix()
           
 ServiceConfiguration parseService(org.w3c.dom.Node serviceNode, java.lang.String prefix)
          Takes in a service Node and parses it.
 java.util.List<ServiceConfiguration> parseServices(java.lang.String url)
          Parses a list of ServiceConfiguration from the given xml file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicesConfigurationFactory

public ServicesConfigurationFactory()
Method Detail

parseServices

public java.util.List<ServiceConfiguration> parseServices(java.lang.String url)
                                                   throws XMLParsingException,
                                                          java.io.IOException
Parses a list of ServiceConfiguration from the given xml file

Parameters:
url -
Returns:
List of ServiceMonitor. These are the parsed services
Throws:
XMLParsingException
java.io.IOException

parseService

public ServiceConfiguration parseService(org.w3c.dom.Node serviceNode,
                                         java.lang.String prefix)
                                  throws XMLParsingException,
                                         ConfigurationsException
Takes in a service Node and parses it.

Parameters:
serviceNode - xml node as an example refer to services.xml
prefix -
Returns:
ServiceConfiguration
Throws:
XMLParsingException
ConfigurationsException

getCnxt

public static NamespaceContext getCnxt()
Returns:
deegree NameSpacecontext plus the cnxt of the ServiceConfiguration

getPrefix

public java.lang.String getPrefix()
Returns:
Prefix of the Serviceconfiguration xml file

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