abstractpublic class JetspeedWebApplicationRewriter (Code)
Utilities for manipulating the web.xml deployment descriptor
author: Scott T. Weaver author: Matt Avery author: David Sean Taylor version: $Id: WebDescriptorUtilities.java,v 1.2 2004/05/12 22:25:04 taylor version: Exp $
Parameters: root - JDom element representing the < web-app > Parameters: toInsert - JDom element to insert into the web.xml hierarchy. Parameters: elementsBefore - an array of web.xml elements that should be defined before theelement we want to insert.
protected void insertElementCorrectly(Element root, Element toInsert, String[] elementsBefore) throws Exception(Code)
insertElementCorrectly
Parameters: root - JDom element representing the < web-app > Parameters: toInsert - JDom element to insert into the web.xml hierarchy. Parameters: elementsBefore - an array of web.xml elements that should be defined before theelement we want to insert. This order should be the orderdefined by the web.xml's DTD type definition.
Infuses this PortletApplicationWar's web.xml file with
servlet and a servlet-mapping element for
the JetspeedContainer servlet. This is only done if the descriptor does
not already contain these items.
throws: MetaDataException - if there is a problem infusing