|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.XMLConfigurator
public class XMLConfigurator
Reads in an XML configuration and configures the XMLTooling library accordingly.
| Constructor Summary | |
|---|---|
XMLConfigurator()
Constructor. |
|
XMLConfigurator(boolean retainXML)
Deprecated. this method will be removed once Configuration no longer has the option to store the XML configuration fragements |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
createClassInstance(org.w3c.dom.Element configuration)
Constructs an instance of the given class. |
protected void |
initializeIDAttributes(org.w3c.dom.Element idAttributesElement)
Registers the global ID attributes specified in the configuration file. |
protected void |
initializeObjectProviders(org.w3c.dom.Element objectProviders)
Intializes the object providers defined in the configuration file. |
protected void |
initializeValidatorSuites(org.w3c.dom.Element validatorSuitesElement)
Initializes the validator suites specified in the configuration file. |
void |
load(org.w3c.dom.Document configuration)
Loads the configuration docuement. |
protected void |
load(org.w3c.dom.Element configurationRoot)
Loads a configuration after it's been schema validated. |
void |
load(java.io.File configurationFile)
Loads the configuration file(s) from the given file. |
void |
load(java.io.InputStream configurationStream)
Loads a configuration file from an input stream. |
protected void |
validateConfiguration(org.w3c.dom.Document configuration)
Schema validates the given configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLConfigurator()
throws ConfigurationException
ConfigurationException - thrown if the validation schema for configuration files can not be created
public XMLConfigurator(boolean retainXML)
throws ConfigurationException
Configuration no longer has the option to store the XML configuration fragements
retainXML - whether to retain the XML configuration elements within the Configuration.
ConfigurationException - thrown if the validation schema for configuration files can not be created| Method Detail |
|---|
public void load(java.io.File configurationFile)
throws ConfigurationException
configurationFile - the configuration file(s) to be loaded
ConfigurationException - thrown if the configuration file(s) can not be be read or invalid
public void load(java.io.InputStream configurationStream)
throws ConfigurationException
configurationStream - configuration stream
ConfigurationException - thrown if the given configuration is invalid or can not be read
public void load(org.w3c.dom.Document configuration)
throws ConfigurationException
configuration - the configurationd document
ConfigurationException - thrown if the configuration file(s) can not be be read or invalid
protected void load(org.w3c.dom.Element configurationRoot)
throws ConfigurationException
configurationRoot - root of the configuration
ConfigurationException - thrown if there is a problem processing the configuration
protected void initializeObjectProviders(org.w3c.dom.Element objectProviders)
throws ConfigurationException
objectProviders - the configuration for the various object providers
ConfigurationException - thrown if the configuration elements are invalid
protected void initializeValidatorSuites(org.w3c.dom.Element validatorSuitesElement)
throws ConfigurationException
validatorSuitesElement - the ValidatorSuites element from the configuration file
ConfigurationException - thrown if there is a problem initializing the validator suites, usually because of
malformed elements
protected void initializeIDAttributes(org.w3c.dom.Element idAttributesElement)
throws ConfigurationException
idAttributesElement - the IDAttributes element from the configuration file
ConfigurationException - thrown if there is a problem with a parsing or registering the the ID attribute
protected java.lang.Object createClassInstance(org.w3c.dom.Element configuration)
throws ConfigurationException
configuration - the current configuration element
ConfigurationException - thrown if the class can not be instaniated
protected void validateConfiguration(org.w3c.dom.Document configuration)
throws ConfigurationException
configuration - the configuration to validate
ConfigurationException - thrown if the configuration is not schema-valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||