org.apache.jk.config
Class WebXml2Jk
public
class
WebXml2Jk
extends 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.
Author: Costin Manolache
Method Summary |
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. it's included TEXT node ) |
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(String[] 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. |
public void execute()
public static Node getChild(Node parent, String name)
Get the first child
public static String getChildContent(Node parent, String name)
Get the first child's content ( i.e. it's included TEXT node )
public static String getContent(Node n)
Get the content of a node
public File getJkDir()
public static Node getNext(Node current)
Get the node in the list of siblings
public Node getWebXmlNode()
Return the top level node
public Vector getWellcomeFiles()
Extract the wellcome files from the web.xml
public static void main(String[] args)
public static Document readXml(File xmlF)
public void setContext(String contextPath)
Set the canonical name of the virtual host.
public void setDocBase(String docBase)
Set the base directory where the application is
deployed ( on the web server ).
public void setGroup(String route)
public void setHost(String vhost)
Set the canonycal name of the virtual host.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.