costin 2003/01/20 15:45:11 Modified: coyote/src/java/org/apache/coyote Request.java Log: Update RequestInfo. Add a new field - start time. It's very usefull - it can be used in many places to avoid calling System.currentTimeMillis(). Revision Changes Path 1.18 +11 -3 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Request.java Index: Request.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Request.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- Request.java 16 Jan 2003 22:25:19 -0000 1.17 +++ Request.java 20 Jan 2003 23:45:11 -0000 1.18 @@ -190,8 +190,10 @@ private ActionHook hook; private int bytesRead=0; + // Time of the request - usefull to avoid repeated calls to System.currentTime + private long startTime; - private RequestProcessor reqProcessorMX=new RequestProcessor(this); + private RequestInfo reqProcessorMX=new RequestInfo(this); // ------------------------------------------------------------- Properties @@ -447,11 +449,17 @@ // -------------------- debug -------------------- - public String toString() { return "R( " + requestURI().toString() + ")"; } + public long getStartTime() { + return startTime; + } + + public void setStartTime(long startTime) { + this.startTime = startTime; + } // -------------------- Per-Request "notes" -------------------- @@ -509,7 +517,7 @@ } // -------------------- Info -------------------- - public RequestProcessor getRequestProcessor() { + public RequestInfo getRequestProcessor() { return reqProcessorMX; }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>