Index: NamespaceConfig.java
===================================================================
RCS file: /home/cvspublic/jakarta-slide/src/share/org/apache/slide/common/NamespaceConfig.java,v
retrieving revision 1.24
diff -u -r1.24 NamespaceConfig.java
--- NamespaceConfig.java	17 May 2002 15:49:51 -0000	1.24
+++ NamespaceConfig.java	26 Sep 2002 10:11:37 -0000
@@ -290,6 +290,15 @@
     
     
     /**
+     * Return all the roles in the configuration
+     **/
+    public java.util.Iterator getRoleNames(){
+	return roleMappings.keySet().iterator();
+    }
+
+
+
+    /**
      * Default action accessor.
      * 
      * @return ActionNode Default action
Index: Domain.java
===================================================================
RCS file: /home/cvspublic/jakarta-slide/src/share/org/apache/slide/common/Domain.java,v
retrieving revision 1.37
diff -u -r1.37 Domain.java
--- Domain.java	10 Sep 2002 11:21:52 -0000	1.37
+++ Domain.java	26 Sep 2002 10:11:38 -0000
@@ -201,8 +201,12 @@
     /**
      * Domain parameters
      */
-    private static Hashtable parameters;
-    
+    private static Hashtable parameters = null; // initialize to null,some classes are calling getParameter() too early...
+                                                // check for null in getParameter() methods...
+                                                // added addParameter() method to  permit EmbeddedDomain to set parameters
+                                                // changes by Richard Unger (runger@camino.at), September 2002
+
+
     // --------------------------------------------------------- Public Methods
     
     
@@ -694,10 +698,17 @@
      * @return the parameter value
      */
     public static String getParameter( String name ) {
-        return (String)parameters.get( name );
+	if (parameters == null){
+	    //System.err.println("Getting parameter: "+name+" but parameters was null.");
+	    return null;
+	}
+	String result = (String)parameters.get( name );
+	//System.err.println("Getting parameter: "+name+" value: "+result);
+        return result;
     }
     
     
+
     /**
      * Get a domain parameter.
      * @param name the parameter name
@@ -705,12 +716,32 @@
      * @return the parameter value
      */
     public static String getParameter( String name, String defaultValue ) {
+	if (parameters == null){
+	    //System.err.println("Getting parameter: "+name+" but parameters was null, using default value: "+defaultValue);
+	    return defaultValue;
+	}
         String result = (String)parameters.get( name );
-        if( result == null )
+        if( result == null ){
             result = defaultValue;
+	    //System.err.println("Getting parameter: "+name+" but it was not found, using default value: "+defaultValue);
+	}
+	else
+	    ;//System.err.println("Getting parameter: "+name+" value: "+result);
         return result;
     }
     
+
+
+    /**
+     * Set a domain parameter...
+     * This is used by SlideServerListener to setup the DAV parameters for the Domain...
+     **/
+    public static void addParameter(String name,String value){
+	if (parameters == null) parameters = new Hashtable();
+	parameters.put(name,value);
+    }
+
+
     
     /**
      * Set the logger to be used by Slide.

