You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2001/11/16 20:21:14 UTC
cvs commit: jakarta-cactus/src/framework/share/org/apache/cactus/server AbstractTestController.java
vmassol 01/11/16 11:21:14
Modified: src/framework/share/org/apache/cactus/server
AbstractTestController.java
Log:
removed explicit logging of entries and exits of methods (using aspectj now) + added new test "service" (we alreayd had "execute test" and "get result" services) which is simply used to verify if connection with the redirector is working and does nothing
Revision Changes Path
1.7 +9 -8 jakarta-cactus/src/framework/share/org/apache/cactus/server/AbstractTestController.java
Index: AbstractTestController.java
===================================================================
RCS file: /home/cvs/jakarta-cactus/src/framework/share/org/apache/cactus/server/AbstractTestController.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- AbstractTestController.java 2001/10/20 10:18:06 1.6
+++ AbstractTestController.java 2001/11/16 19:21:14 1.7
@@ -72,7 +72,7 @@
*
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
*
- * @version $Id: AbstractTestController.java,v 1.6 2001/10/20 10:18:06 vmassol Exp $
+ * @version $Id: AbstractTestController.java,v 1.7 2001/11/16 19:21:14 vmassol Exp $
*/
public abstract class AbstractTestController
{
@@ -98,8 +98,6 @@
public void handleRequest(WebImplicitObjects theObjects)
throws ServletException
{
- logger.entry("handleRequest(...)");
-
// If the Cactus user has forgotten to put a needed jar on the server
// classpath (i.e. in WEB-INF/lib), then the servlet engine Webapp
// class loader will throw a NoClassDefFoundError exception. As this
@@ -127,6 +125,14 @@
caller.doGetResults();
+ // Is it the test connection service ?
+ // This service is only used to verify that connection between
+ // client and server is working fine
+ } else if (ServiceEnumeration.RUN_TEST_SERVICE.
+ equals(serviceName)) {
+
+ caller.doRunTest();
+
} else {
String message = "Unknown service [" + serviceName +
"] in HTTP request.";
@@ -151,8 +157,6 @@
throw new ServletException(message, e);
}
}
-
- logger.exit("doPost");
}
/**
@@ -163,8 +167,6 @@
private String getServiceName(HttpServletRequest theRequest)
throws ServletException
{
- logger.entry("getServiceName(...)");
-
// Call the correct Service method
String queryString = theRequest.getQueryString();
String serviceName = ServletUtil.getQueryStringParameter(queryString,
@@ -179,7 +181,6 @@
logger.debug("Service to call = " + serviceName);
- logger.exit("getServiceName");
return serviceName;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>