fr.dyade.aaa.agent.conf

Class A3CML


public class A3CML
extends java.lang.Object

Defines XML syntactic element for A3CML configuration file.

Method Summary

static A3CMLConfig
getConfig(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(String path)
static A3CMLConfig
getXMLConfig(String cfgDir, String cfgFileName)
Gets an agent server configuration from a XML file.
static void
toXML(A3CMLConfig config, PrintWriter out)
static void
toXML(A3CMLConfig config, String cfgDir, String xmlFileName)
write a configuration in an A3CML file.

Method Details

getConfig

public static A3CMLConfig getConfig(Reader reader)
            throws 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.


getXMLConfig

public static A3CMLConfig getXMLConfig()
            throws 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.


getXMLConfig

public static A3CMLConfig getXMLConfig(String path)
            throws Exception


getXMLConfig

public static A3CMLConfig getXMLConfig(String cfgDir,
                                       String cfgFileName)
            throws 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.


toXML

public static final void toXML(A3CMLConfig config,
                               PrintWriter out)
            throws Exception


toXML

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


Copyright B) 2004 Scalagent - All rights reserved