commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/jelly HttpTag.java
Date Sun, 07 Jul 2002 14:25:41 GMT
dion        2002/07/07 07:25:40

  Modified:    latka/src/java/org/apache/commons/latka/jelly HttpTag.java
  Log:
  Add response time to context
  
  Revision  Changes    Path
  1.11      +8 -4      jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/HttpTag.java
  
  Index: HttpTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/HttpTag.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- HttpTag.java	7 Jul 2002 13:58:45 -0000	1.10
  +++ HttpTag.java	7 Jul 2002 14:25:40 -0000	1.11
  @@ -162,9 +162,13 @@
           SessionTag sessionTag = (SessionTag) findAncestorWithClass(
               SessionTag.class);
           HttpMultiClient client = sessionTag.getHttpClient();
  +        long start = System.currentTimeMillis();
           client.executeMethod(urlMethod);
  +        long end = System.currentTimeMillis();
           if (getId() != null) {
               getContext().setVariable(getId(), urlMethod);
  +            getContext().setVariable(getId()+".responseTime", 
  +                String.valueOf(end - start));
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message