fr.dyade.aaa.agent.conf
Class A3CML

java.lang.Object
  extended byfr.dyade.aaa.agent.conf.A3CML

public class A3CML
extends java.lang.Object

Defines XML syntactic element for A3CML configuration file.


Constructor Summary
A3CML()
           
 
Method Summary
static A3CMLConfig getConfig(java.io.Reader reader)
          Gets configuration of agent servers from a XML file.
static A3CMLConfig getXMLConfig()
          Gets an agent server configuration from a XML file.
static A3CMLConfig getXMLConfig(java.lang.String path)
           
static A3CMLConfig getXMLConfig(java.lang.String cfgDir, java.lang.String cfgFileName)
          Gets an agent server configuration from a XML file.
static void toXML(A3CMLConfig config, java.io.PrintWriter out)
           
static void toXML(A3CMLConfig config, java.lang.String cfgDir, java.lang.String xmlFileName)
          write a configuration in an A3CML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

A3CML

public A3CML()
Method Detail

toXML

public static final void toXML(A3CMLConfig config,
                               java.lang.String cfgDir,
                               java.lang.String xmlFileName)
                        throws java.lang.Exception
write a configuration in an A3CML file.

Throws:
java.lang.Exception

toXML

public static final void toXML(A3CMLConfig config,
                               java.io.PrintWriter out)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getXMLConfig

public static A3CMLConfig getXMLConfig()
                                throws java.lang.Exception
Gets an agent server configuration from a XML file. This method fills the object graph configuration in the A3CMLConfig object.

Returns:
the A3CMLConfig object if file exists and is correct, null otherwise.
Throws:
java.lang.Exception - unspecialized exception when reading and parsing the configuration file

getXMLConfig

public static A3CMLConfig getXMLConfig(java.lang.String cfgDir,
                                       java.lang.String cfgFileName)
                                throws java.lang.Exception
Gets an agent server configuration from a XML file. This method fills the object graph configuration in the A3CMLConfig object.

Parameters:
cfgDir - directory of XML file
Returns:
the A3CMLConfig object if file exists and is correct, null otherwise.
Throws:
java.lang.Exception - unspecialized exception when reading and parsing the configuration file

getXMLConfig

public static A3CMLConfig getXMLConfig(java.lang.String path)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getConfig

public static A3CMLConfig getConfig(java.io.Reader reader)
                             throws java.lang.Exception
Gets configuration of agent servers from a XML file. This method fills the object graph configuration in the Config object.

Parameters:
reader - Reader
Returns:
the Config object if file exists and is correct, null otherwise.
Throws:
java.lang.Exception - unspecialized exception when reading and parsing the configuration file


Copyright ? 2004 Scalagent - All rights reserved