|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
org.ow2.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_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,
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)
|
J2EEMBeanAttributeInfo[] |
getAttributes(ObjectName objectName,
String serverName)
Get management attributes. |
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 |
getIntAttribute(ObjectName objectName,
String attrName)
MBean ObjectName 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. |
static String |
getNameForProvider(String providerUrl,
Collection<?> checkWithinInThis)
Gets the server name for given provider url. |
protected Properties |
getPropsFromString(String ps_Props)
Get properties from stringified property table. |
ServiceItem |
getServerItem(String serviceName)
Get service item. |
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 Object |
invoke(ObjectName on,
String operation,
Object[] param,
String[] signature)
MBean ObjectName accessor. |
boolean |
isActive(String serviceName)
true if the given service is active. |
protected void |
refreshDomainDeployTree(HttpServletRequest p_Request)
Refresh the domain deployment nodes of the tree. |
protected void |
refreshServicesTree(HttpServletRequest request)
refresh service's tree. |
protected void |
refreshTree(HttpServletRequest p_Request)
Refresh the entire 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.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
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_Errorsinstance of
m_ErrorsActionMessages and log it.
p_Throwable - Error to add
protected Object invoke(ObjectName on,
String operation,
Object[] param,
String[] signature)
ObjectName accessor.
on - Instance of ObjectName to access to MBeanparam - invoke parameterssignature - invoke parameters signature
protected 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 write
protected 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 write
protected 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 write
protected 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 int getIntAttribute(ObjectName objectName,
String 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 write
protected 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 write
protected 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 write
protected 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 write
protected 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 empty
protected 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 write
protected 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 write
protected 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)
ps_Props - stringified property table
protected static String removeChar(String string,
char c)
string - the given stringc - character to remove in the String
protected void refreshTree(HttpServletRequest p_Request)
throws Exception
Exception - any.
protected void refreshServicesTree(HttpServletRequest request)
throws Exception
request - the http request.
Exception - any.
protected void refreshDomainDeployTree(HttpServletRequest p_Request)
throws Exception
p_Request - the http request
Exception - any.protected String getJonasBase()
public static String getNameForProvider(String providerUrl,
Collection<?> checkWithinInThis)
providerUrl - get name for thischeckWithinInThis - check in this list
public ServiceItem getServerItem(String serviceName)
serviceName - the service name.
public boolean isActive(String serviceName)
true if the given service is active.
serviceName - the service name.
true if the given service is active.
public J2EEMBeanAttributeInfo[] getAttributes(ObjectName objectName,
String serverName)
objectName - objectNameserverName - server name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||