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:
DeploymentEventListener

public class JettyDeployPortletAppEventListener
extends DeployPortletAppEventListener

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

Field Summary
 
Fields inherited from class org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener
log
 
Constructor Summary
JettyDeployPortletAppEventListener(PortletApplicationManagement pam, PortletRegistry registry, java.lang.String webAppDir, java.lang.String localAppDir, boolean stripLoggers, java.lang.String jettyContextsDir)
           
JettyDeployPortletAppEventListener(PortletApplicationManagement pam, PortletRegistry registry, java.lang.String webAppDir, java.lang.String localAppDir, java.lang.String localAppStagingDir, boolean stripLoggers, java.lang.String jettyContextsDir)
           
 
Method Summary
protected  void deployPortletApplication(DeploymentEvent event)
           
protected  org.jdom.Document getCurrentJettyContext(java.io.File contextFile)
           
protected  java.io.File getCurrentJettyContextFile(java.lang.String contextName)
           
protected  org.jdom.Document getJettyContext(java.lang.String fileName)
           
protected  org.jdom.Document getJettyContextTemplate()
           
protected  org.jdom.Document parseJettyContext(java.io.InputStream source)
           
protected  void removeCurrentPA(java.lang.String contextName)
           
protected  boolean removeDir(java.io.File file)
           
protected  void updateJettyContext(java.lang.String contextName, java.lang.String warPath, org.jdom.Document context)
           
protected  void writeJettyContext(java.lang.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
 

Constructor Detail

JettyDeployPortletAppEventListener

public JettyDeployPortletAppEventListener(PortletApplicationManagement pam,
                                          PortletRegistry registry,
                                          java.lang.String webAppDir,
                                          java.lang.String localAppDir,
                                          boolean stripLoggers,
                                          java.lang.String jettyContextsDir)
                                   throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

JettyDeployPortletAppEventListener

public JettyDeployPortletAppEventListener(PortletApplicationManagement pam,
                                          PortletRegistry registry,
                                          java.lang.String webAppDir,
                                          java.lang.String localAppDir,
                                          java.lang.String localAppStagingDir,
                                          boolean stripLoggers,
                                          java.lang.String jettyContextsDir)
                                   throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

deployPortletApplication

protected void deployPortletApplication(DeploymentEvent event)
                                 throws DeploymentException
Overrides:
deployPortletApplication in class DeployPortletAppEventListener
Throws:
DeploymentException

removeCurrentPA

protected void removeCurrentPA(java.lang.String contextName)
                        throws java.io.IOException
Throws:
java.io.IOException

removeDir

protected boolean removeDir(java.io.File file)

getCurrentJettyContextFile

protected java.io.File getCurrentJettyContextFile(java.lang.String contextName)
                                           throws java.io.IOException
Throws:
java.io.IOException

getCurrentJettyContext

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

getJettyContextTemplate

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

getJettyContext

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

updateJettyContext

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

writeJettyContext

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

parseJettyContext

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


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