|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.tools.deploy.JetspeedWebApplicationRewriter
public abstract class JetspeedWebApplicationRewriter
Utilities for manipulating the web.xml deployment descriptor
Field Summary | |
---|---|
static java.lang.String |
JETSPEED_CONTAINER
|
static java.lang.String |
JETSPEED_SERVLET_CLASS
|
static java.lang.String |
JETSPEED_SERVLET_DESCRIPTION
|
static java.lang.String |
JETSPEED_SERVLET_DISPLAY_NAME
|
static java.lang.String |
NAMESPACE_PREFIX
|
protected static java.lang.String |
WEB_XML_PATH
|
Constructor Summary | |
---|---|
JetspeedWebApplicationRewriter(org.jdom.Document doc)
|
|
JetspeedWebApplicationRewriter(org.jdom.Document doc,
java.lang.String portletApplication)
|
Method Summary | |
---|---|
protected abstract java.lang.String |
getJetspeedServletMappingXPath()
Returns the jetspeed servlet mapping xpath. |
protected abstract java.lang.String |
getJetspeedServletXPath()
Returns the jetspeed servlet xpath. |
protected abstract java.lang.String |
getPortletTagLibXPath()
Returns the portlet taglib xpath. |
protected org.jdom.xpath.XPath |
getXPath(java.lang.String path)
Returns the xpath containing the namespace prefix 'js' mapped to the document default namespace. |
protected void |
insertContextNameParam(org.jdom.Element jetspeedServletElement)
|
protected void |
insertElementCorrectly(org.jdom.Element root,
org.jdom.Element toInsert,
java.lang.String[] elementsBefore)
insertElementCorrectly |
protected abstract void |
insertJetspeedServlet(org.jdom.Element root)
Inserts the jetspeed servlet into web.xml |
protected abstract void |
insertJetspeedServletMapping(org.jdom.Element root)
Inserts the jetspeed servlet mapping into web.xml |
protected void |
insertLoadOnStartup(org.jdom.Element jetspeedServletElement)
|
protected abstract void |
insertPortletTagLib(org.jdom.Element root)
Inserts the portlet taglib into web.xml |
boolean |
isChanged()
|
boolean |
isPortletTaglibAdded()
|
void |
processWebXML()
processWebXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JETSPEED_CONTAINER
public static final java.lang.String JETSPEED_SERVLET_CLASS
public static final java.lang.String JETSPEED_SERVLET_DISPLAY_NAME
public static final java.lang.String JETSPEED_SERVLET_DESCRIPTION
public static final java.lang.String NAMESPACE_PREFIX
protected static final java.lang.String WEB_XML_PATH
Constructor Detail |
---|
public JetspeedWebApplicationRewriter(org.jdom.Document doc, java.lang.String portletApplication)
public JetspeedWebApplicationRewriter(org.jdom.Document doc)
Method Detail |
---|
public void processWebXML() throws java.lang.Exception
processWebXML
Infuses this PortletApplicationWar's web.xml file withservlet
and a servlet-mapping
element for
the JetspeedContainer servlet. This is only done if the descriptor does
not already contain these items.
MetaDataException
- if there is a problem infusing
java.lang.Exception
protected void insertContextNameParam(org.jdom.Element jetspeedServletElement)
protected void insertLoadOnStartup(org.jdom.Element jetspeedServletElement)
public boolean isChanged()
protected void insertElementCorrectly(org.jdom.Element root, org.jdom.Element toInsert, java.lang.String[] elementsBefore) throws java.lang.Exception
insertElementCorrectly
root
- JDom element representing the < web-app >toInsert
- JDom element to insert into the web.xml hierarchy.elementsBefore
- an array of web.xml elements that should be defined before the
element we want to insert. This order should be the order
defined by the web.xml's DTD type definition.
java.lang.Exception
public boolean isPortletTaglibAdded()
protected org.jdom.xpath.XPath getXPath(java.lang.String path) throws org.jdom.JDOMException
path
-
org.jdom.JDOMException
protected abstract java.lang.String getJetspeedServletXPath()
protected abstract java.lang.String getJetspeedServletMappingXPath()
protected abstract java.lang.String getPortletTagLibXPath()
protected abstract void insertJetspeedServlet(org.jdom.Element root) throws java.lang.Exception
root
-
java.lang.Exception
protected abstract void insertJetspeedServletMapping(org.jdom.Element root) throws java.lang.Exception
root
-
java.lang.Exception
protected abstract void insertPortletTagLib(org.jdom.Element root) throws java.lang.Exception
root
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |