nl.gx.webmanager.services.framework.spi
Class ConfigurationUtil
java.lang.Object
nl.gx.webmanager.services.framework.spi.ConfigurationUtil
public final class ConfigurationUtil
- extends java.lang.Object
ConfigUtil provides helper methods for loading and parsing framework
configuration files.
TODO: configuration should be defined by an xsd
FIXME: clean up.. most methods not in use
- Author:
- bramk
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationUtil
public ConfigurationUtil()
getConfigDocumentResource
public static org.w3c.dom.Document getConfigDocumentResource(java.lang.String resource)
throws java.lang.Exception,
org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
- Returns:
-
- Throws:
java.lang.Exception
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
getConfigProperties
public static java.util.Properties getConfigProperties(org.w3c.dom.Document document)
throws javax.xml.transform.TransformerException
- Parameters:
document - properties -
- Throws:
javax.xml.transform.TransformerException
getConfigInstallMap
public static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> getConfigInstallMap(org.w3c.dom.Document document)
throws javax.xml.transform.TransformerException
- Parameters:
document -
- Throws:
javax.xml.transform.TransformerException
getConfigStartMap
public static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> getConfigStartMap(org.w3c.dom.Document document)
throws javax.xml.transform.TransformerException
- Parameters:
document -
- Throws:
javax.xml.transform.TransformerException
getTextContents
public static java.lang.String getTextContents(org.w3c.dom.Node node)
- Parameters:
node -
- Returns:
testIsDirectory
public static java.lang.String testIsDirectory(java.lang.String path)
- Parameters:
args -
createDirectory
public static boolean createDirectory(java.lang.String path)
- Parameters:
args -
removeDirectory
public static boolean removeDirectory(java.lang.String path)
- Parameters:
args -
getConfiguredDirectory
public static java.lang.String getConfiguredDirectory(java.lang.String path)
- Parameters:
args -
Copyright © 2007-2010 GX creative online development BV. All Rights Reserved.