org.objectweb.jonas.webapp.jonasadmin.service.container
Class ApplyWebAppCatalinaAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
          extended by org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction
              extended by org.objectweb.jonas.webapp.jonasadmin.service.container.BaseWebAppAction
                  extended by org.objectweb.jonas.webapp.jonasadmin.service.container.ApplyWebAppCatalinaAction

public class ApplyWebAppCatalinaAction
extends BaseWebAppAction

Author:
Michel-Ange ANTON

Field Summary
 
Fields inherited from class org.objectweb.jonas.webapp.jonasadmin.service.container.BaseWebAppAction
mWarForm, mWebAppForm
 
Fields inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
DEPTH_DOMAIN, DEPTH_SERVER, m_Errors, m_Resources, m_Session, m_WhereAreYou
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
ApplyWebAppCatalinaAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping, org.apache.struts.action.ActionForm p_Form, javax.servlet.http.HttpServletRequest p_Request, javax.servlet.http.HttpServletResponse p_Response)
           
protected  org.apache.struts.action.ActionForward populateMbean(WebAppCatalinaForm p_Form, org.apache.struts.action.ActionForward p_Forward, org.apache.struts.action.ActionMapping p_Mapping, javax.servlet.http.HttpServletRequest p_Request)
          Populate the Mbean web application (Context, Manager, Loader).
protected  org.apache.struts.action.ActionForward reloadWebApplication(WebAppCatalinaForm p_Form, org.apache.struts.action.ActionMapping p_Mapping, java.lang.String jonasServerName)
          Reload the current web application.
protected  org.apache.struts.action.ActionForward startWebApplication(WebAppCatalinaForm p_Form, org.apache.struts.action.ActionMapping p_Mapping, java.lang.String jonasServerName)
          Start the current web application.
protected  org.apache.struts.action.ActionForward stopWebApplication(WebAppCatalinaForm p_Form, org.apache.struts.action.ActionMapping p_Mapping, java.lang.String jonasServerName)
          Stop the current web application.
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.service.container.BaseWebAppAction
createWarForm, createWebAppForm, findJ2eeWebModuleMbean, findJonasMbeanWar, findWebAppMbean, initialize, populateJettyWar, populateWar, populateWar, populateWebApp, populateWebAppCatalina, populateWebAppJetty
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction
deploy, deployDataSource, deployMailFactory, getCurrentJonasDeployment, getDomainDeploymentMethodName, getDomainUploadDeployMethodName, getForwardEdit, getListDeployableFiles, getListDeployedFiles, isConfigurable, isDomain, isModule, refreshJoramTree, refreshMBeansTree, refreshServiceTree, refreshTree, refreshWebServiceTree, removeFile, runGC, setCurrentJonasDeployment, undeploy, undeployDataSource, undeployMailFactory
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
addGlobalError, execute, getBooleanAttribute, getBooleanAttribute, getBooleanAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getJonasBase, getListAttribute, getLongAttribute, getLongAttribute, getLongAttribute, getPropsFromString, getShortAttribute, getStringArrayAttribute, getStringAttribute, getStringAttribute, getStringAttribute, getTreeBranchName, initialize, refreshDomainDeployTree, refreshDomainMonitoringTree, refreshServerTree, removeChar, setBooleanAttribute, setBooleanAttribute, setIntegerAttribute, setIntegerAttribute, setIntegerAttribute, setLongAttribute, setLongAttribute, setShortAttribute, setStringAttribute, setStringAttribute, setStringAttribute, toStringBooleanAttribute, toStringIntegerAttribute, toStringLongAttribute, toStringShortAttribute
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyWebAppCatalinaAction

public ApplyWebAppCatalinaAction()
Method Detail

executeAction

public org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping,
                                                            org.apache.struts.action.ActionForm p_Form,
                                                            javax.servlet.http.HttpServletRequest p_Request,
                                                            javax.servlet.http.HttpServletResponse p_Response)
                                                     throws java.io.IOException,
                                                            javax.servlet.ServletException
Specified by:
executeAction in class JonasBaseAction
Throws:
java.io.IOException
javax.servlet.ServletException

populateMbean

protected org.apache.struts.action.ActionForward populateMbean(WebAppCatalinaForm p_Form,
                                                               org.apache.struts.action.ActionForward p_Forward,
                                                               org.apache.struts.action.ActionMapping p_Mapping,
                                                               javax.servlet.http.HttpServletRequest p_Request)
                                                        throws java.lang.Exception
Populate the Mbean web application (Context, Manager, Loader).

Parameters:
p_Form - The current form
p_Forward - The current forward
p_Mapping - The current mapping
p_Request - The current request
Returns:
If 'save' is requested then return the new forward to save else return the current forward
Throws:
java.lang.Exception

reloadWebApplication

protected org.apache.struts.action.ActionForward reloadWebApplication(WebAppCatalinaForm p_Form,
                                                                      org.apache.struts.action.ActionMapping p_Mapping,
                                                                      java.lang.String jonasServerName)
                                                               throws java.lang.Exception
Reload the current web application.

Parameters:
p_Form - The current form
p_Mapping - The current mapping
Returns:
The forward to go to the next page
Throws:
java.lang.Exception

startWebApplication

protected org.apache.struts.action.ActionForward startWebApplication(WebAppCatalinaForm p_Form,
                                                                     org.apache.struts.action.ActionMapping p_Mapping,
                                                                     java.lang.String jonasServerName)
                                                              throws java.lang.Exception
Start the current web application.

Parameters:
p_Form - The current form
p_Mapping - The current mapping
Returns:
The forward to go to the next page
Throws:
java.lang.Exception

stopWebApplication

protected org.apache.struts.action.ActionForward stopWebApplication(WebAppCatalinaForm p_Form,
                                                                    org.apache.struts.action.ActionMapping p_Mapping,
                                                                    java.lang.String jonasServerName)
                                                             throws java.lang.Exception
Stop the current web application.

Parameters:
p_Form - The current form
p_Mapping - The current mapping
Returns:
The forward to go to the next page
Throws:
java.lang.Exception