|
||||||||||
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
|
static String |
GLOBAL_ERROR_FORWARD
Global Forward error page name. |
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 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(Throwable p_Throwable)
Add a global error in m_Errors instance 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,
HttpServletRequest p_Request,
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,
HttpServletRequest p_Request,
HttpServletResponse p_Response)
|
protected boolean |
getBooleanAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected boolean |
getBooleanAttribute(Properties p_Props,
String ps_AttrName)
Properties accessor. |
protected boolean |
getBooleanAttribute(Properties p_Props,
String ps_AttrName,
boolean p_Default)
Properties accessor. |
protected int |
getIntegerAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected int |
getIntegerAttribute(Properties p_Props,
String ps_AttrName)
Properties accessor. |
protected int |
getIntegerAttribute(Properties p_Props,
String ps_AttrName,
int p_Default)
Properties accessor. |
protected String |
getJonasBase()
|
protected List |
getListAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected long |
getLongAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected long |
getLongAttribute(Properties p_Props,
String ps_AttrName)
Properties accessor. |
protected long |
getLongAttribute(Properties p_Props,
String ps_AttrName,
long p_Default)
Properties accessor. |
protected Properties |
getPropsFromString(String ps_Props)
|
protected long |
getShortAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected String[] |
getStringArrayAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected String |
getStringAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected String |
getStringAttribute(Properties p_Props,
String ps_AttrName)
Properties accessor. |
protected String |
getStringAttribute(Properties p_Props,
String ps_AttrName,
String p_Default)
Properties accessor. |
protected String |
getTreeBranchName(int p_Width)
Return the name of the branch in the tree for the selected node. |
protected void |
initialize(HttpServletRequest p_Request)
Initialize the instance variables. |
protected void |
refreshDomainDeployTree(HttpServletRequest p_Request)
Refresh the domain deployment nodes of the tree. |
protected void |
refreshDomainMonitoringTree(HttpServletRequest p_Request)
Refresh the domain monitoring nodes of the tree. |
protected void |
refreshServerTree(HttpServletRequest p_Request)
Refresh the management tree. |
protected static String |
removeChar(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(ObjectName p_ObjectName,
String ps_AttrName,
boolean p_Value)
MBean ObjectName accessor. |
protected void |
setBooleanAttribute(Properties p_Props,
String ps_AttrName,
boolean p_Value)
Properties accessor. |
protected void |
setIntegerAttribute(ObjectName p_ObjectName,
String ps_AttrName,
int p_Value)
MBean ObjectName accessor. |
protected void |
setIntegerAttribute(ObjectName p_ObjectName,
String ps_AttrName,
String p_Value)
MBean ObjectName accessor. |
protected void |
setIntegerAttribute(Properties p_Props,
String ps_AttrName,
int p_Value)
Properties accessor. |
protected void |
setLongAttribute(ObjectName p_ObjectName,
String ps_AttrName,
long p_Value)
MBean ObjectName accessor. |
protected void |
setLongAttribute(Properties p_Props,
String ps_AttrName,
long p_Value)
Properties accessor. |
protected void |
setShortAttribute(ObjectName p_ObjectName,
String ps_AttrName,
long p_Value)
MBean ObjectName accessor. |
protected void |
setStringAttribute(ObjectName p_ObjectName,
String ps_AttrName,
String p_Value)
MBean ObjectName accessor. |
protected void |
setStringAttribute(Properties p_Props,
String ps_AttrName,
String p_Value)
Properties accessor. |
protected void |
setStringAttribute(Properties p_Props,
String ps_AttrName,
String p_Value,
String p_Default)
Properties accessor. |
protected String |
toStringBooleanAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected String |
toStringIntegerAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected String |
toStringLongAttribute(ObjectName p_ObjectName,
String ps_AttrName)
MBean ObjectName accessor. |
protected String |
toStringShortAttribute(ObjectName p_ObjectName,
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
public static final String GLOBAL_ERROR_FORWARD
protected org.apache.struts.util.MessageResources m_Resources
protected 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, HttpServletRequest p_Request, HttpServletResponse p_Response) throws IOException, ServletException
IOException
ServletException
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping p_Mapping, org.apache.struts.action.ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response) throws IOException, 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.Action
p_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
IOException
- if an input/output error occurs
ServletException
- if a servlet exception occursprotected void initialize(HttpServletRequest p_Request)
p_Request
- The HTTP request we are processingprotected String getTreeBranchName(int p_Width)
p_Width
- Depth of the branch
protected void addGlobalError(Throwable p_Throwable)
m_Errors
instance of m_ErrorsActionMessages
and log it.
p_Throwable
- Error to addprotected String getStringAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected String[] getStringArrayAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected void setStringAttribute(ObjectName p_ObjectName, String ps_AttrName, String p_Value)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBeanp_Value
- Value to writeprotected int getIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected String toStringIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected void setIntegerAttribute(ObjectName p_ObjectName, 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 writeprotected void setIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName, String p_Value)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBeanp_Value
- Value to writeprotected long getLongAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected String toStringLongAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected void setLongAttribute(ObjectName p_ObjectName, 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 writeprotected long getShortAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected String toStringShortAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected void setShortAttribute(ObjectName p_ObjectName, 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 writeprotected boolean getBooleanAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected String toStringBooleanAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected void setBooleanAttribute(ObjectName p_ObjectName, 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 writeprotected List getListAttribute(ObjectName p_ObjectName, String ps_AttrName)
ObjectName
accessor.
p_ObjectName
- Instance of ObjectName to access to MBeanps_AttrName
- Attribute name of MBean
protected String getStringAttribute(Properties p_Props, String ps_AttrName)
p_Props
- Instance of Propertiesps_AttrName
- Attribute name of Properties
protected String getStringAttribute(Properties p_Props, String ps_AttrName, 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(Properties p_Props, String ps_AttrName, String p_Value)
p_Props
- Instance of Propertiesps_AttrName
- Attribute name of Propertiesp_Value
- Value to writeprotected void setStringAttribute(Properties p_Props, String ps_AttrName, String p_Value, 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 emptyprotected int getIntegerAttribute(Properties p_Props, String ps_AttrName)
p_Props
- Instance of Propertiesps_AttrName
- Attribute name of Properties
protected int getIntegerAttribute(Properties p_Props, 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(Properties p_Props, String ps_AttrName, int p_Value)
p_Props
- Instance of Propertiesps_AttrName
- Attribute name of Propertiesp_Value
- Value to writeprotected long getLongAttribute(Properties p_Props, String ps_AttrName)
p_Props
- Instance of Propertiesps_AttrName
- Attribute name of Properties
protected long getLongAttribute(Properties p_Props, 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(Properties p_Props, String ps_AttrName, long p_Value)
p_Props
- Instance of Propertiesps_AttrName
- Attribute name of Propertiesp_Value
- Value to writeprotected boolean getBooleanAttribute(Properties p_Props, String ps_AttrName)
p_Props
- Instance of Propertiesps_AttrName
- Attribute name of Properties
protected boolean getBooleanAttribute(Properties p_Props, 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(Properties p_Props, String ps_AttrName, boolean p_Value)
p_Props
- Instance of Propertiesps_AttrName
- Attribute name of Propertiesp_Value
- Value to writeprotected Properties getPropsFromString(String ps_Props)
protected static String removeChar(String string, char c)
string
- the given stringc
- character to remove in the String
protected void refreshServerTree(HttpServletRequest p_Request) throws Exception
Exception
protected void refreshDomainDeployTree(HttpServletRequest p_Request) throws Exception
p_Request
-
Exception
protected void refreshDomainMonitoringTree(HttpServletRequest p_Request) throws Exception
p_Request
-
Exception
protected String getJonasBase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |