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 String deobfuscate(String s)
s - a string starting with "OBF:"public static String getValue(XmlParser.Node node, String name)
name - case insensitivepublic static String obfuscate(String s)
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 boolean setValue(XmlParser.Node node, String name, String value)
name - case insensitivepublic static void write(XmlParser.Node node, Writer out) throws IOException
IOException