You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/03/23 09:49:48 UTC
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote Constants.java RequestInfo.java
remm 2003/03/23 00:49:48
Modified: coyote/src/java/org/apache/coyote Constants.java
RequestInfo.java
Log:
- Also expose the request processing state in the request info. The problem was that
there was no way to associate the thread with the request info.
Revision Changes Path
1.3 +10 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Constants.java
Index: Constants.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Constants.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Constants.java 8 Apr 2002 22:49:52 -0000 1.2
+++ Constants.java 23 Mar 2003 08:49:48 -0000 1.3
@@ -86,4 +86,14 @@
public static final int MAX_NOTES = 32;
+ // Request states
+ public static final int STAGE_NEW = 0;
+ public static final int STAGE_PARSE = 1;
+ public static final int STAGE_PREPARE = 2;
+ public static final int STAGE_SERVICE = 3;
+ public static final int STAGE_ENDINPUT = 4;
+ public static final int STAGE_ENDOUTPUT = 5;
+ public static final int STAGE_ENDED = 6;
+
+
}
1.2 +9 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestInfo.java
Index: RequestInfo.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestInfo.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RequestInfo.java 20 Jan 2003 23:42:45 -0000 1.1
+++ RequestInfo.java 23 Mar 2003 08:49:48 -0000 1.2
@@ -96,6 +96,7 @@
// ----------------------------------------------------- Instance Variables
Request req;
Response res;
+ int stage = Constants.STAGE_NEW;
// -------------------- Information about the current request -----------
// This is usefull for long-running requests only
@@ -163,6 +164,14 @@
maxTime=time;
maxRequestUri=req.requestURI().toString();
}
+ }
+
+ public int getStage() {
+ return stage;
+ }
+
+ public void setStage(int stage) {
+ this.stage = stage;
}
public long getBytesSent() {
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org