org.apache.jk.config
Class WebXml2Jk
java.lang.Object
org.apache.jk.config.WebXml2Jk
public class WebXml2Jk
extends java.lang.Object
Read a web.xml file and generate the mappings for jk2.
It can be used from the command line or ant.
In order for the web server to serve static pages, all webapps
must be deployed on the computer that runs Apache, IIS, etc.
Dynamic pages can be executed on that computer or other servers
in a pool, but even if the main server doesn't run tomcat,
it must have all the static files and WEB-INF/web.xml.
( you could have a script remove everything else, including jsps - if
security paranoia is present ).
XXX We could have this in WEB-INF/urimap.properties.
- Costin Manolache
void | execute()
|
static Node | getChild(Node parent, String name) - Get the first child
|
static String | getChildContent(Node parent, String name) - Get the first child's content ( i.e.
|
static String | getContent(Node n) - Get the content of a node
|
File | getJkDir()
|
static Node | getNext(Node current) - Get the node in the list of siblings
|
Node | getWebXmlNode() - Return the top level node
|
Vector | getWellcomeFiles() - Extract the wellcome files from the web.xml
|
static void | main(args[] )
|
static Document | readXml(File xmlF)
|
void | setContext(String contextPath) - Set the canonical name of the virtual host.
|
void | setDocBase(String docBase) - Set the base directory where the application is
deployed ( on the web server ).
|
void | setGroup(String route)
|
void | setHost(String vhost) - Set the canonycal name of the virtual host.
|
execute
public void execute()
getChild
public static Node getChild(Node parent,
String name)
Get the first child
getChildContent
public static String getChildContent(Node parent,
String name)
Get the first child's content ( i.e. it's included TEXT node )
getContent
public static String getContent(Node n)
Get the content of a node
getJkDir
public File getJkDir()
getNext
public static Node getNext(Node current)
Get the node in the list of siblings
getWebXmlNode
public Node getWebXmlNode()
Return the top level node
getWellcomeFiles
public Vector getWellcomeFiles()
Extract the wellcome files from the web.xml
main
public static void main(args[] )
readXml
public static Document readXml(File xmlF)
throws SAXException,
IOException,
ParserConfigurationException
setContext
public void setContext(String contextPath)
Set the canonical name of the virtual host.
setDocBase
public void setDocBase(String docBase)
Set the base directory where the application is
deployed ( on the web server ).
setGroup
public void setGroup(String route)
setHost
public void setHost(String vhost)
Set the canonycal name of the virtual host.
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.