org.apache.jetspeed.deployment.impl
Class JettyDeployPortletAppEventListener

java.lang.Object
  extended by org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener
      extended by org.apache.jetspeed.deployment.impl.JettyDeployPortletAppEventListener
All Implemented Interfaces:
org.apache.jetspeed.deployment.DeploymentEventListener

public class JettyDeployPortletAppEventListener
extends DeployPortletAppEventListener

Version:
$Id: JettyDeployPortletAppEventListener.java 549661 2007-06-22 01:24:32Z ate $
Author:
Ate Douma

Field Summary
private  String jettyContextsDir
           
 
Fields inherited from class org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener
log
 
Constructor Summary
JettyDeployPortletAppEventListener(org.apache.jetspeed.tools.pamanager.PortletApplicationManagement pam, org.apache.jetspeed.components.portletregistry.PortletRegistry registry, String webAppDir, String localAppDir, boolean stripLoggers, String jettyContextsDir)
           
JettyDeployPortletAppEventListener(org.apache.jetspeed.tools.pamanager.PortletApplicationManagement pam, org.apache.jetspeed.components.portletregistry.PortletRegistry registry, String webAppDir, String localAppDir, String localAppStagingDir, boolean stripLoggers, String jettyContextsDir)
           
 
Method Summary
protected  void deployPortletApplication(org.apache.jetspeed.deployment.DeploymentEvent event)
           
protected  org.jdom.Document getCurrentJettyContext(File contextFile)
           
protected  File getCurrentJettyContextFile(String contextName)
           
protected  org.jdom.Document getJettyContext(String fileName)
           
protected  org.jdom.Document getJettyContextTemplate()
           
private  void initJettyContextsDir(String jettyContextsDir)
           
protected  org.jdom.Document parseJettyContext(InputStream source)
           
protected  void removeCurrentPA(String contextName)
           
protected  boolean removeDir(File file)
           
protected  void updateJettyContext(String contextName, String warPath, org.jdom.Document context)
           
protected  void writeJettyContext(String contextName, org.jdom.Document context)
           
 
Methods inherited from class org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener
createLocalPAClassLoader, deployLocalPortletApplication, getWebAppDir, initialize, invokeDeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jettyContextsDir

private String jettyContextsDir
Constructor Detail

JettyDeployPortletAppEventListener

public JettyDeployPortletAppEventListener(org.apache.jetspeed.tools.pamanager.PortletApplicationManagement pam,
                                          org.apache.jetspeed.components.portletregistry.PortletRegistry registry,
                                          String webAppDir,
                                          String localAppDir,
                                          boolean stripLoggers,
                                          String jettyContextsDir)
                                   throws FileNotFoundException
Throws:
FileNotFoundException

JettyDeployPortletAppEventListener

public JettyDeployPortletAppEventListener(org.apache.jetspeed.tools.pamanager.PortletApplicationManagement pam,
                                          org.apache.jetspeed.components.portletregistry.PortletRegistry registry,
                                          String webAppDir,
                                          String localAppDir,
                                          String localAppStagingDir,
                                          boolean stripLoggers,
                                          String jettyContextsDir)
                                   throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

initJettyContextsDir

private void initJettyContextsDir(String jettyContextsDir)
                           throws FileNotFoundException
Throws:
FileNotFoundException

deployPortletApplication

protected void deployPortletApplication(org.apache.jetspeed.deployment.DeploymentEvent event)
                                 throws org.apache.jetspeed.deployment.DeploymentException
Overrides:
deployPortletApplication in class DeployPortletAppEventListener
Throws:
org.apache.jetspeed.deployment.DeploymentException

removeCurrentPA

protected void removeCurrentPA(String contextName)
                        throws IOException
Throws:
IOException

removeDir

protected boolean removeDir(File file)

getCurrentJettyContextFile

protected File getCurrentJettyContextFile(String contextName)
                                   throws IOException
Throws:
IOException

getCurrentJettyContext

protected org.jdom.Document getCurrentJettyContext(File contextFile)
                                            throws IOException
Throws:
IOException

getJettyContextTemplate

protected org.jdom.Document getJettyContextTemplate()
                                             throws IOException
Throws:
IOException

getJettyContext

protected org.jdom.Document getJettyContext(String fileName)
                                     throws IOException
Throws:
IOException

updateJettyContext

protected void updateJettyContext(String contextName,
                                  String warPath,
                                  org.jdom.Document context)

writeJettyContext

protected void writeJettyContext(String contextName,
                                 org.jdom.Document context)
                          throws IOException
Throws:
IOException

parseJettyContext

protected org.jdom.Document parseJettyContext(InputStream source)
                                       throws IOException
Throws:
IOException


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