You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2006/10/20 07:05:23 UTC
svn commit: r465994 -
/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/transport/http/AdminAgent.java
Author: chamil
Date: Thu Oct 19 22:05:22 2006
New Revision: 465994
URL: http://svn.apache.org/viewvc?view=rev&rev=465994
Log:
Changing the status messages to give more information.
Modified:
webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/transport/http/AdminAgent.java
Modified: webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/transport/http/AdminAgent.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/transport/http/AdminAgent.java?view=diff&rev=465994&r1=465993&r2=465994
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/transport/http/AdminAgent.java (original)
+++ webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/transport/http/AdminAgent.java Thu Oct 19 22:05:22 2006
@@ -517,7 +517,8 @@
renderView(LIST_AVAILABLE_MODULES_JSP_NAME, req, res);
}
- protected void processdisengageModule(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
+ protected void processdisengageModule(HttpServletRequest req, HttpServletResponse res)
+ throws IOException, ServletException {
String type = req.getParameter("type");
String serviceName = req.getParameter("serviceName");
String moduleName = req.getParameter("module");
@@ -526,19 +527,23 @@
AxisModule module = axisConfiguration.getModule(new QName(moduleName));
if (type.equals("operation")) {
if (service.isEngaged(module.getName()) || axisConfiguration.isEngaged(module.getName())) {
- req.getSession().setAttribute("status", "can not dis-engage module. This module is engaged at the top level");
+ req.getSession().setAttribute("status", "Can not disengage module " + moduleName +
+ ". This module is engaged at a higher level.");
} else {
String opName = req.getParameter("operation");
AxisOperation op = service.getOperation(new QName(opName));
op.disengageModule(module);
- req.getSession().setAttribute("status", "dis-engaged from the operation");
+ req.getSession().setAttribute("status", "Module " + moduleName + " was disengaged from " +
+ "operation " + opName + " in service " + serviceName + ".");
}
} else {
if (axisConfiguration.isEngaged(module.getName())) {
- req.getSession().setAttribute("status", "can not dis-engage module. This module is engaged at the top level");
+ req.getSession().setAttribute("status", "Can not disengage module " + moduleName + ". " +
+ "This module is engaged at a higher level.");
} else {
service.disengageModule(axisConfiguration.getModule(new QName(moduleName)));
- req.getSession().setAttribute("status", "dis-engaged from the service");
+ req.getSession().setAttribute("status", "Module " + moduleName + " was disengaged from" +
+ " service " + serviceName + ".");
}
}
renderView("disengage.jsp", req, res);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org