public class JettyXmlConfigurationParser extends Object
Constructor and Description |
---|
JettyXmlConfigurationParser() |
Modifier and Type | Method and Description |
---|---|
static String |
deobfuscate(String s)
De-Obfuscate a password from the XML
|
static String |
getValue(XmlParser.Node node,
String name)
Recursively go through the entire tree starting at node.
|
static String |
obfuscate(String s)
Obfuscate a password for storage in the XML
|
static XmlParser.Node |
parse(File f)
Reads and parses the XML configuration file.
|
static boolean |
setValue(XmlParser.Node node,
String name,
String value)
Recursively go through the entire tree starting at node.
|
static void |
write(XmlParser.Node node,
Writer out)
Write out the XML.
|
public static XmlParser.Node parse(File f) throws SAXException, IOException
f
- an XML configuration fileIOException
- if the configuration could not be readSAXException
- if the configuration could not be parsedpublic static String getValue(XmlParser.Node node, String name)
name
- case insensitivepublic static boolean setValue(XmlParser.Node node, String name, String value)
name
- case insensitivepublic static void write(XmlParser.Node node, Writer out) throws IOException
IOException
public static String obfuscate(String s)