nl.idgis.giserver
Class GiServerConfiguration

java.lang.Object
  extended by nl.idgis.giserver.GiServerConfiguration

public class GiServerConfiguration
extends java.lang.Object

Registering all configuration data for this server.

Author:
bretelerjj

Constructor Summary
GiServerConfiguration()
           
 
Method Summary
 void addCoverageServiceClient(CoverageServiceClient coverageServiceClient)
          Add the given coverage service client to the knowledge domain of this server.
 void addLayerToConfiguration(Layer layer)
           
 void finalize()
          Finalizing :: get rid off registered log4j appender
 org.w3c.dom.Document getConfigurationErrorReport()
           
 org.w3c.dom.Document getDocSLD()
           
 org.w3c.dom.Document getDocSLD(java.lang.String fileName)
          Parsing the SLD xml file
 JDBC_ConnectionParams getJDBC_ConnectionParams(java.lang.String name)
          Search for a registered JDBC connection under given name.
 java.util.Vector<JDBC_ConnectionParams> getJDBC_connections()
           
 Layer getLayer(java.lang.String layerName)
           
 java.util.Vector<Layer> getLayers()
           
 DataSetLayer getLayerServingFeatureType(org.deegree.datatypes.QualifiedName featureTypeName)
          Search is the configurated dataset layers for a layer serving the named feature type.
 java.util.Vector<FeatureServiceClient> getLocalWFSClients()
           
 java.lang.String getName()
           
 org.deegree.framework.xml.NamespaceContext getNsc()
           
 GiServerEnumeration getServerEnumeration()
           
 java.lang.String getSldFileName()
           
 java.lang.String getVersion()
           
 java.lang.String getWEBINF_root()
           
 void readConfiguration()
          Read the servers configuration.
 void registerRootPathWEBINF(java.lang.String realPath)
           
 CoverageServiceClient searchCoverageServiceClient(java.lang.String name)
           
 FeatureServiceClient searchFeatureServiceClient(java.lang.String name)
          Search for a wfs feature service client
 FeatureServiceClient searchWFSClient(org.deegree.datatypes.QualifiedName featureTypeName)
          Search for a wfs feature service client serving the given feature type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GiServerConfiguration

public GiServerConfiguration()
Method Detail

getName

public java.lang.String getName()

getVersion

public java.lang.String getVersion()

readConfiguration

public void readConfiguration()
Read the servers configuration. The configuration file is localized at /conf .


getDocSLD

public org.w3c.dom.Document getDocSLD(java.lang.String fileName)
Parsing the SLD xml file

Parameters:
fileName -

getLayers

public java.util.Vector<Layer> getLayers()

getLayer

public Layer getLayer(java.lang.String layerName)

addLayerToConfiguration

public void addLayerToConfiguration(Layer layer)

addCoverageServiceClient

public void addCoverageServiceClient(CoverageServiceClient coverageServiceClient)
Add the given coverage service client to the knowledge domain of this server.

Parameters:
coverageServiceClient -

searchCoverageServiceClient

public CoverageServiceClient searchCoverageServiceClient(java.lang.String name)

searchFeatureServiceClient

public FeatureServiceClient searchFeatureServiceClient(java.lang.String name)
Search for a wfs feature service client

Parameters:
name -
Returns:
found client or null

searchWFSClient

public FeatureServiceClient searchWFSClient(org.deegree.datatypes.QualifiedName featureTypeName)
Search for a wfs feature service client serving the given feature type. Association is done on feature types name.

Parameters:
featureTypeName -
Returns:
found client or null

getLayerServingFeatureType

public DataSetLayer getLayerServingFeatureType(org.deegree.datatypes.QualifiedName featureTypeName)
Search is the configurated dataset layers for a layer serving the named feature type.

Parameters:
featureTypeName - the feature type name of the feature served by the searching layer.
Returns:
serving data set layer or null is no layer is found

finalize

public void finalize()
Finalizing :: get rid off registered log4j appender

Overrides:
finalize in class java.lang.Object

getConfigurationErrorReport

public org.w3c.dom.Document getConfigurationErrorReport()

getJDBC_ConnectionParams

public JDBC_ConnectionParams getJDBC_ConnectionParams(java.lang.String name)
Search for a registered JDBC connection under given name.

Parameters:
name - identification of the searching JDBC connector
Returns:
valid/existing JDBC connection.

getServerEnumeration

public GiServerEnumeration getServerEnumeration()

getNsc

public org.deegree.framework.xml.NamespaceContext getNsc()

getJDBC_connections

public java.util.Vector<JDBC_ConnectionParams> getJDBC_connections()

registerRootPathWEBINF

public void registerRootPathWEBINF(java.lang.String realPath)

getWEBINF_root

public java.lang.String getWEBINF_root()

getDocSLD

public org.w3c.dom.Document getDocSLD()

getSldFileName

public java.lang.String getSldFileName()

getLocalWFSClients

public java.util.Vector<FeatureServiceClient> getLocalWFSClients()