com.atlassian.user.configuration.xml
Class XMLConfigurationParser

java.lang.Object
  extended bycom.atlassian.user.configuration.xml.XMLConfigurationParser

public class XMLConfigurationParser
extends java.lang.Object

Parses repository definitions and configuration out of an atlassian-user.xml file, with fall-back to the defaults loaded by the XMLDefaultsParser.

TODO: Document the file format.

See Also:
XMLDefaultsParser

Constructor Summary
XMLConfigurationParser()
           
XMLConfigurationParser(java.lang.String defaultsFileName)
           
 
Method Summary
 java.util.List getRepositoryConfigurations()
           
 void parse(java.io.InputStream docIS)
           
protected  void parseRepositories(org.dom4j.Node repositoriesNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLConfigurationParser

public XMLConfigurationParser()
                       throws ConfigurationException

XMLConfigurationParser

public XMLConfigurationParser(java.lang.String defaultsFileName)
                       throws ConfigurationException
Method Detail

parse

public void parse(java.io.InputStream docIS)
           throws ConfigurationException
Throws:
ConfigurationException

parseRepositories

protected void parseRepositories(org.dom4j.Node repositoriesNode)
                          throws ConfigurationException,
                                 org.dom4j.DocumentException,
                                 java.io.IOException
Throws:
ConfigurationException
org.dom4j.DocumentException
java.io.IOException

getRepositoryConfigurations

public java.util.List getRepositoryConfigurations()
Returns:
an unmodifiable list of RepositoryConfigurations in order of delegation.


Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.