public class QuickServerXmlParser
extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_AJP_PORT |
static java.lang.String |
DEFAULT_APP_BASE |
static java.lang.String |
DEFAULT_HOST |
static java.lang.String |
DEFAULT_HTTP_PORT |
static java.lang.String |
DEFAULT_HTTPS_PORT |
static java.lang.String |
DEFAULT_KEYSTORE |
static java.lang.String |
DEFAULT_STOP_PORT |
Constructor and Description |
---|
QuickServerXmlParser() |
QuickServerXmlParser(boolean useDefaults) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
ajp() |
java.lang.String |
appBase() |
java.lang.String |
host() |
java.lang.String |
http() |
java.lang.String |
https() |
java.lang.String |
keystore() |
static QuickServerXmlParser |
parse(java.io.File serverXml) |
static QuickServerXmlParser |
parse(java.io.File serverXml,
boolean defaults) |
static QuickServerXmlParser |
parse(java.lang.String serverXmlContents) |
java.lang.String |
securedValue(java.lang.String key,
java.lang.String defaultValue) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
java.lang.String |
stop() |
java.lang.String |
toString() |
java.lang.String |
value(java.lang.String key,
java.lang.String defaultValue) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public static final java.lang.String DEFAULT_HTTP_PORT
public static final java.lang.String DEFAULT_HTTPS_PORT
public static final java.lang.String DEFAULT_STOP_PORT
public static final java.lang.String DEFAULT_AJP_PORT
public static final java.lang.String DEFAULT_HOST
public static final java.lang.String DEFAULT_APP_BASE
public static final java.lang.String DEFAULT_KEYSTORE
public QuickServerXmlParser()
public QuickServerXmlParser(boolean useDefaults)
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public static QuickServerXmlParser parse(java.io.File serverXml)
public static QuickServerXmlParser parse(java.io.File serverXml, boolean defaults)
public static QuickServerXmlParser parse(java.lang.String serverXmlContents)
public java.lang.String http()
public java.lang.String https()
public java.lang.String ajp()
public java.lang.String stop()
public java.lang.String appBase()
public java.lang.String host()
public java.lang.String keystore()
public java.lang.String value(java.lang.String key, java.lang.String defaultValue)
public java.lang.String securedValue(java.lang.String key, java.lang.String defaultValue)
public java.lang.String toString()
toString
in class java.lang.Object