org.apache.jetspeed.tools.deploy
Class JetspeedWebApplicationRewriter2_4

java.lang.Object
  extended by org.apache.jetspeed.tools.deploy.JetspeedWebApplicationRewriter
      extended by org.apache.jetspeed.tools.deploy.JetspeedWebApplicationRewriter2_4

 class JetspeedWebApplicationRewriter2_4
extends JetspeedWebApplicationRewriter

Utilities for manipulating the web.xml deployment descriptor version 2.4

Version:
$Id: JetspeedWebApplicationRewriter2_4.java 517121 2007-03-12 07:45:49Z ate $
Author:
Nicolas Dutertry

Field Summary
protected static String[] ELEMENTS_BEFORE_JSP_CONFIG
           
protected static String[] ELEMENTS_BEFORE_SERVLET
           
protected static String[] ELEMENTS_BEFORE_SERVLET_MAPPING
           
protected static String[] ELEMENTS_BEFORE_TAGLIB_MAPPING
           
static String JETSPEED_SERVLET_MAPPING_XPATH
           
static String JETSPEED_SERVLET_XPATH
           
static String JSP_CONFIG_XPATH
           
static String PORTLET_TAGLIB_XPATH
           
 
Fields inherited from class org.apache.jetspeed.tools.deploy.JetspeedWebApplicationRewriter
JETSPEED_CONTAINER, JETSPEED_SERVLET_CLASS, JETSPEED_SERVLET_DESCRIPTION, JETSPEED_SERVLET_DISPLAY_NAME, NAMESPACE_PREFIX, WEB_XML_PATH
 
Constructor Summary
JetspeedWebApplicationRewriter2_4(org.jdom.Document doc)
           
JetspeedWebApplicationRewriter2_4(org.jdom.Document doc, String portletApplication)
           
 
Method Summary
protected  String getJetspeedServletMappingXPath()
          Returns the jetspeed servlet mapping xpath.
protected  String getJetspeedServletXPath()
          Returns the jetspeed servlet xpath.
protected  String getPortletTagLibXPath()
          Returns the portlet taglib xpath.
protected  void insertJetspeedServlet(org.jdom.Element root)
          Inserts the jetspeed servlet into web.xml
protected  void insertJetspeedServletMapping(org.jdom.Element root)
          Inserts the jetspeed servlet mapping into web.xml
protected  void insertPortletTagLib(org.jdom.Element root)
          Inserts the portlet taglib into web.xml
 
Methods inherited from class org.apache.jetspeed.tools.deploy.JetspeedWebApplicationRewriter
getXPath, insertContextNameParam, insertElementCorrectly, insertLoadOnStartup, isChanged, isPortletTaglibAdded, processWebXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JETSPEED_SERVLET_XPATH

public static final String JETSPEED_SERVLET_XPATH
See Also:
Constant Field Values

JETSPEED_SERVLET_MAPPING_XPATH

public static final String JETSPEED_SERVLET_MAPPING_XPATH
See Also:
Constant Field Values

JSP_CONFIG_XPATH

public static final String JSP_CONFIG_XPATH
See Also:
Constant Field Values

PORTLET_TAGLIB_XPATH

public static final String PORTLET_TAGLIB_XPATH
See Also:
Constant Field Values

ELEMENTS_BEFORE_SERVLET

protected static final String[] ELEMENTS_BEFORE_SERVLET

ELEMENTS_BEFORE_SERVLET_MAPPING

protected static final String[] ELEMENTS_BEFORE_SERVLET_MAPPING

ELEMENTS_BEFORE_JSP_CONFIG

protected static final String[] ELEMENTS_BEFORE_JSP_CONFIG

ELEMENTS_BEFORE_TAGLIB_MAPPING

protected static final String[] ELEMENTS_BEFORE_TAGLIB_MAPPING
Constructor Detail

JetspeedWebApplicationRewriter2_4

public JetspeedWebApplicationRewriter2_4(org.jdom.Document doc,
                                         String portletApplication)

JetspeedWebApplicationRewriter2_4

public JetspeedWebApplicationRewriter2_4(org.jdom.Document doc)
Method Detail

getJetspeedServletXPath

protected String getJetspeedServletXPath()
Returns the jetspeed servlet xpath.

Specified by:
getJetspeedServletXPath in class JetspeedWebApplicationRewriter
Returns:
jetspeed servlet xpath

getJetspeedServletMappingXPath

protected String getJetspeedServletMappingXPath()
Returns the jetspeed servlet mapping xpath.

Specified by:
getJetspeedServletMappingXPath in class JetspeedWebApplicationRewriter
Returns:
jetspeed servlet mapping xpath

getPortletTagLibXPath

protected String getPortletTagLibXPath()
Returns the portlet taglib xpath.

Specified by:
getPortletTagLibXPath in class JetspeedWebApplicationRewriter
Returns:
portlet taglib xpath

insertJetspeedServlet

protected void insertJetspeedServlet(org.jdom.Element root)
                              throws Exception
Inserts the jetspeed servlet into web.xml

Specified by:
insertJetspeedServlet in class JetspeedWebApplicationRewriter
Parameters:
root -
Throws:
Exception

insertJetspeedServletMapping

protected void insertJetspeedServletMapping(org.jdom.Element root)
                                     throws Exception
Inserts the jetspeed servlet mapping into web.xml

Specified by:
insertJetspeedServletMapping in class JetspeedWebApplicationRewriter
Parameters:
root -
Throws:
Exception

insertPortletTagLib

protected void insertPortletTagLib(org.jdom.Element root)
                            throws Exception
Inserts the portlet taglib into web.xml

Specified by:
insertPortletTagLib in class JetspeedWebApplicationRewriter
Parameters:
root -
Throws:
Exception


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.