org.ow2.jonas.webapp.jonasadmin.logging
Class ApplyCatalinaAccessLoggerAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.ow2.jonas.webapp.jonasadmin.JonasBaseAction
          extended by org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction
              extended by org.ow2.jonas.webapp.jonasadmin.logging.BaseLoggerAction
                  extended by org.ow2.jonas.webapp.jonasadmin.logging.ApplyCatalinaAccessLoggerAction

public class ApplyCatalinaAccessLoggerAction
extends BaseLoggerAction

Author:
Michel-Ange ANTON, Adriana Danes

Field Summary
 
Fields inherited from class org.ow2.jonas.webapp.jonasadmin.JonasBaseAction
DEPTH_DOMAIN, DEPTH_SERVER, GLOBAL_ERROR_FORWARD, m_Errors, m_Resources, m_Session, m_WhereAreYou
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
ApplyCatalinaAccessLoggerAction()
           
 
Method Summary
protected  org.apache.struts.action.ActionForward createAccessLogger(CatalinaAccessLogValveForm pForm, org.apache.struts.action.ActionMapping pMapping, HttpServletRequest pRequest)
          Create a new access logger.
 org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping pMapping, org.apache.struts.action.ActionForm pForm, HttpServletRequest pRequest, HttpServletResponse pResponse)
          Execute CatalinaAccessLogger action
protected  org.apache.struts.action.ActionForward populateMbean(CatalinaAccessLogValveForm p_Form, org.apache.struts.action.ActionForward p_Forward, org.apache.struts.action.ActionMapping p_Mapping, HttpServletRequest p_Request)
          Populate the Mbean Access Logger.
 
Methods inherited from class org.ow2.jonas.webapp.jonasadmin.logging.BaseLoggerAction
refreshLoggersTree, refreshTree
 
Methods inherited from class org.ow2.jonas.webapp.jonasadmin.deploy.BaseDeployAction
deploy, deployDataSource, deployMailFactory, deployModule, getCurrentJonasDeployment, getDomainDeploymentMethodName, getDomainUploadDeployMethodName, getForwardEdit, getListDeployableFiles, getListDeployedFiles, isConfigurable, isDeployment, isDomain, isModule, refreshJoramTree, refreshMBeansTree, refreshServiceTree, refreshWebServiceTree, removeFile, removeModule, runGC, setCurrentJonasDeployment, undeploy, undeployDataSource, undeployMailFactory, undeployModule
 
Methods inherited from class org.ow2.jonas.webapp.jonasadmin.JonasBaseAction
addGlobalError, execute, getAttributes, getBooleanAttribute, getBooleanAttribute, getBooleanAttribute, getIntAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getJonasBase, getListAttribute, getLongAttribute, getLongAttribute, getLongAttribute, getNameForProvider, getPropsFromString, getServerItem, getShortAttribute, getStringArrayAttribute, getStringAttribute, getStringAttribute, getStringAttribute, getTreeBranchName, initialize, invoke, isActive, refreshDomainDeployTree, refreshServicesTree, 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

ApplyCatalinaAccessLoggerAction

public ApplyCatalinaAccessLoggerAction()
Method Detail

executeAction

public org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping pMapping,
                                                            org.apache.struts.action.ActionForm pForm,
                                                            HttpServletRequest pRequest,
                                                            HttpServletResponse pResponse)
                                                     throws IOException,
                                                            ServletException
Execute CatalinaAccessLogger action

Specified by:
executeAction in class JonasBaseAction
Parameters:
pForm - The current form
pMapping - The current mapping
pRequest - The current request
pResponse - The response to the current request
Returns:
The forward to go to the next page
Throws:
Exception
IOException
ServletException

createAccessLogger

protected org.apache.struts.action.ActionForward createAccessLogger(CatalinaAccessLogValveForm pForm,
                                                                    org.apache.struts.action.ActionMapping pMapping,
                                                                    HttpServletRequest pRequest)
                                                             throws Exception
Create a new access logger.

Parameters:
pForm - The current form
pMapping - The current mapping
pRequest - The current request
Returns:
The forward to go to the next page
Throws:
Exception

populateMbean

protected org.apache.struts.action.ActionForward populateMbean(CatalinaAccessLogValveForm p_Form,
                                                               org.apache.struts.action.ActionForward p_Forward,
                                                               org.apache.struts.action.ActionMapping p_Mapping,
                                                               HttpServletRequest p_Request)
                                                        throws Exception
Populate the Mbean Access Logger.

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:
Exception - Failed to populate Mbean


Copyright © 2010 OW2 Consortium. All Rights Reserved.