org.deegree.portal.owswatch
Class ServicesConfigurationFactory
java.lang.Object
  
org.deegree.portal.owswatch.ServicesConfigurationFactory
- All Implemented Interfaces: 
 - Serializable
 
public class ServicesConfigurationFactory
- extends Object
- implements 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 (Wed, 21 Oct 2009) $
 
- Author:
 
  - Moataz Elmasry, last edited by: $Author: jmays $
 
- See Also:
 - Serialized Form
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ServicesConfigurationFactory
public ServicesConfigurationFactory()
parseServices
public List<ServiceConfiguration> parseServices(String url)
                                         throws XMLParsingException,
                                                IOException
- Parses a list of ServiceConfiguration from the given xml file
 
- Parameters:
 url - 
- Returns:
 - List of ServiceMonitor. These are the parsed services
 - Throws:
 XMLParsingException
IOException
 
 
parseService
public ServiceConfiguration parseService(Node serviceNode,
                                         String prefix)
                                  throws XMLParsingException,
                                         ConfigurationsException
- Takes in a service Node and parses it.
 
- Parameters:
 serviceNode - xml node as an example refer to services.xmlprefix - 
- Returns:
 - ServiceConfiguration
 - Throws:
 XMLParsingException
ConfigurationsException
 
 
getCnxt
public static NamespaceContext getCnxt()
 
- Returns:
 - deegree NameSpacecontext plus the cnxt of the ServiceConfiguration
 
 
getPrefix
public String getPrefix()
 
- Returns:
 - Prefix of the Serviceconfiguration xml file
 
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org