| java.lang.Object org.apache.jk.config.WebXml2Jk
All known Subclasses: org.apache.jk.config.GeneratorJk2, org.apache.jk.config.GeneratorJk1, org.apache.jk.config.GeneratorApache2,
WebXml2Jk | public class WebXml2Jk (Code) | | 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 |
Inner Class :public static interface MappingGenerator | |
Inner Class :public static class NullResolver implements EntityResolver | |
execute | public void execute()(Code) | | |
getChildContent | public static String getChildContent(Node parent, String name)(Code) | | Get the first child's content ( i.e. it's included TEXT node )
|
getContent | public static String getContent(Node n)(Code) | | Get the content of a node
|
getNext | public static Node getNext(Node current)(Code) | | Get the node in the list of siblings
|
getWebXmlNode | public Node getWebXmlNode()(Code) | | Return the top level node
|
getWellcomeFiles | public Vector getWellcomeFiles()(Code) | | Extract the wellcome files from the web.xml
|
setContext | public void setContext(String contextPath)(Code) | | Set the canonical name of the virtual host.
|
setDocBase | public void setDocBase(String docBase)(Code) | | Set the base directory where the application is
deployed ( on the web server ).
|
setHost | public void setHost(String vhost)(Code) | | Set the canonycal name of the virtual host.
|
|
|