org.apache.jk.config
public class WebXml2Jk extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
WebXml2Jk.MappingGenerator |
static class |
WebXml2Jk.NullResolver |
Constructor and Description |
---|
WebXml2Jk() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
static org.w3c.dom.Node |
getChild(org.w3c.dom.Node parent,
java.lang.String name)
Get the first child
|
static java.lang.String |
getChildContent(org.w3c.dom.Node parent,
java.lang.String name)
Get the first child's content ( i.e. it's included TEXT node )
|
static java.lang.String |
getContent(org.w3c.dom.Node n)
Get the content of a node
|
java.io.File |
getJkDir() |
static org.w3c.dom.Node |
getNext(org.w3c.dom.Node current)
Get the node in the list of siblings
|
org.w3c.dom.Node |
getWebXmlNode()
Return the top level node
|
java.util.Vector |
getWellcomeFiles()
Extract the wellcome files from the web.xml
|
static void |
main(java.lang.String[] args) |
static org.w3c.dom.Document |
readXml(java.io.File xmlF) |
void |
setContext(java.lang.String contextPath)
Set the canonical name of the virtual host.
|
void |
setDocBase(java.lang.String docBase)
Set the base directory where the application is
deployed ( on the web server ).
|
void |
setGroup(java.lang.String route) |
void |
setHost(java.lang.String vhost)
Set the canonycal name of the virtual host.
|
public void setHost(java.lang.String vhost)
public void setContext(java.lang.String contextPath)
public void setDocBase(java.lang.String docBase)
public void setGroup(java.lang.String route)
public org.w3c.dom.Node getWebXmlNode()
public java.io.File getJkDir()
public java.util.Vector getWellcomeFiles()
public void execute()
public static void main(java.lang.String[] args)
public static java.lang.String getContent(org.w3c.dom.Node n)
public static org.w3c.dom.Node getChild(org.w3c.dom.Node parent, java.lang.String name)
public static java.lang.String getChildContent(org.w3c.dom.Node parent, java.lang.String name)
public static org.w3c.dom.Node getNext(org.w3c.dom.Node current)
public static org.w3c.dom.Document readXml(java.io.File xmlF) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.