|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.struts.action.Action
org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
public abstract class JonasBaseAction
| Field Summary | |
|---|---|
static int |
DEPTH_DOMAIN
|
static int |
DEPTH_SERVER
|
protected org.apache.struts.action.ActionMessages |
m_Errors
|
protected org.apache.struts.util.MessageResources |
m_Resources
The MessageResources we will be retrieving messages from. |
protected javax.servlet.http.HttpSession |
m_Session
|
protected WhereAreYou |
m_WhereAreYou
|
| Fields inherited from class org.apache.struts.action.Action |
|---|
defaultLocale, servlet |
| Constructor Summary | |
|---|---|
JonasBaseAction()
|
|
| Method Summary | |
|---|---|
protected void |
addGlobalError(java.lang.Throwable p_Throwable)
Add a global error in m_Errorsinstance of m_ErrorsActionMessages
and log it. |
org.apache.struts.action.ActionForward |
execute(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)
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it). |
abstract 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 boolean |
getBooleanAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected boolean |
getBooleanAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName)
Properties accessor. |
protected boolean |
getBooleanAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
boolean p_Default)
Properties accessor. |
protected int |
getIntegerAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected int |
getIntegerAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName)
Properties accessor. |
protected int |
getIntegerAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
int p_Default)
Properties accessor. |
protected java.lang.String |
getJonasBase()
|
protected java.util.List |
getListAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected long |
getLongAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected long |
getLongAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName)
Properties accessor. |
protected long |
getLongAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
long p_Default)
Properties accessor. |
protected java.util.Properties |
getPropsFromString(java.lang.String ps_Props)
|
protected long |
getShortAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected java.lang.String[] |
getStringArrayAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected java.lang.String |
getStringAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected java.lang.String |
getStringAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName)
Properties accessor. |
protected java.lang.String |
getStringAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
java.lang.String p_Default)
Properties accessor. |
protected java.lang.String |
getTreeBranchName(int p_Width)
Return the name of the branch in the tree for the selected node. |
protected void |
initialize(javax.servlet.http.HttpServletRequest p_Request)
Initialize the instance variables. |
protected void |
refreshDomainDeployTree(javax.servlet.http.HttpServletRequest p_Request)
Refresh the domain deployment nodes of the tree. |
protected void |
refreshDomainMonitoringTree(javax.servlet.http.HttpServletRequest p_Request)
Refresh the domain monitoring nodes of the tree. |
protected void |
refreshServerTree(javax.servlet.http.HttpServletRequest p_Request)
Refresh the management tree. |
protected static java.lang.String |
removeChar(java.lang.String string,
char c)
Remove a specific character in a String Do not use replaceAll as it is a JDK 1.4 method |
protected void |
setBooleanAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
boolean p_Value)
MBean ObjectName accessor. |
protected void |
setBooleanAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
boolean p_Value)
Properties accessor. |
protected void |
setIntegerAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
int p_Value)
MBean ObjectName accessor. |
protected void |
setIntegerAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
java.lang.String p_Value)
MBean ObjectName accessor. |
protected void |
setIntegerAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
int p_Value)
Properties accessor. |
protected void |
setLongAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
long p_Value)
MBean ObjectName accessor. |
protected void |
setLongAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
long p_Value)
Properties accessor. |
protected void |
setShortAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
long p_Value)
MBean ObjectName accessor. |
protected void |
setStringAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
java.lang.String p_Value)
MBean ObjectName accessor. |
protected void |
setStringAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
java.lang.String p_Value)
Properties accessor. |
protected void |
setStringAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
java.lang.String p_Value,
java.lang.String p_Default)
Properties accessor. |
protected java.lang.String |
toStringBooleanAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected java.lang.String |
toStringIntegerAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected java.lang.String |
toStringLongAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
protected java.lang.String |
toStringShortAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
MBean ObjectName accessor. |
| 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 |
| Field Detail |
|---|
public static final int DEPTH_DOMAIN
public static final int DEPTH_SERVER
protected org.apache.struts.util.MessageResources m_Resources
protected javax.servlet.http.HttpSession m_Session
protected org.apache.struts.action.ActionMessages m_Errors
protected WhereAreYou m_WhereAreYou
| Constructor Detail |
|---|
public JonasBaseAction()
| Method Detail |
|---|
public abstract 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
java.io.IOException
javax.servlet.ServletException
public org.apache.struts.action.ActionForward execute(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
ActionForward instance describing where and how
control should be forwarded, or null if the response has
already been completed.
execute in class org.apache.struts.action.Actionp_Mapping - The ActionMapping used to select this instancep_Form - The optional ActionForm bean for this request (if any)p_Request - The HTTP request we are processingp_Response - The HTTP response we are creating
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet exception occursprotected void initialize(javax.servlet.http.HttpServletRequest p_Request)
p_Request - The HTTP request we are processingprotected java.lang.String getTreeBranchName(int p_Width)
p_Width - Depth of the branch
protected void addGlobalError(java.lang.Throwable p_Throwable)
m_Errorsinstance of m_ErrorsActionMessages
and log it.
p_Throwable - Error to add
protected java.lang.String getStringAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected java.lang.String[] getStringArrayAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected void setStringAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
java.lang.String p_Value)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBeanp_Value - Value to write
protected int getIntegerAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected java.lang.String toStringIntegerAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected void setIntegerAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
int p_Value)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBeanp_Value - Value to write
protected void setIntegerAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
java.lang.String p_Value)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBeanp_Value - Value to write
protected long getLongAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected java.lang.String toStringLongAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected void setLongAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
long p_Value)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBeanp_Value - Value to write
protected long getShortAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected java.lang.String toStringShortAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected void setShortAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
long p_Value)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBeanp_Value - Value to write
protected boolean getBooleanAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected java.lang.String toStringBooleanAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected void setBooleanAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName,
boolean p_Value)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBeanp_Value - Value to write
protected java.util.List getListAttribute(javax.management.ObjectName p_ObjectName,
java.lang.String ps_AttrName)
ObjectName accessor.
p_ObjectName - Instance of ObjectName to access to MBeanps_AttrName - Attribute name of MBean
protected java.lang.String getStringAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Properties
protected java.lang.String getStringAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
java.lang.String p_Default)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Default - The returned value if the attribute don't exists in the properties
protected void setStringAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
java.lang.String p_Value)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Value - Value to write
protected void setStringAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
java.lang.String p_Value,
java.lang.String p_Default)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Value - Value to writep_Default - The forced value if the value is null or empty
protected int getIntegerAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Properties
protected int getIntegerAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
int p_Default)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Default - The returned value if the attribute don't exists in the properties
protected void setIntegerAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
int p_Value)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Value - Value to write
protected long getLongAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Properties
protected long getLongAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
long p_Default)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Default - The returned value if the attribute don't exists in the properties
protected void setLongAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
long p_Value)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Value - Value to write
protected boolean getBooleanAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Properties
protected boolean getBooleanAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
boolean p_Default)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Default - The returned value if the attribute don't exists in the properties
protected void setBooleanAttribute(java.util.Properties p_Props,
java.lang.String ps_AttrName,
boolean p_Value)
p_Props - Instance of Propertiesps_AttrName - Attribute name of Propertiesp_Value - Value to writeprotected java.util.Properties getPropsFromString(java.lang.String ps_Props)
protected static java.lang.String removeChar(java.lang.String string,
char c)
string - the given stringc - character to remove in the String
protected void refreshServerTree(javax.servlet.http.HttpServletRequest p_Request)
throws java.lang.Exception
java.lang.Exception
protected void refreshDomainDeployTree(javax.servlet.http.HttpServletRequest p_Request)
throws java.lang.Exception
p_Request -
java.lang.Exception
protected void refreshDomainMonitoringTree(javax.servlet.http.HttpServletRequest p_Request)
throws java.lang.Exception
p_Request -
java.lang.Exceptionprotected java.lang.String getJonasBase()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||