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/validators MaxResponseTimeTag.java
Date Thu, 11 Jul 2002 12:30:59 GMT
dion        2002/07/11 05:30:59

  Modified:    latka/src/java/org/apache/commons/latka/jelly/validators
                        MaxResponseTimeTag.java
  Log:
  Default max response time to 30seconds
  
  Revision  Changes    Path
  1.2       +14 -14    jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/MaxResponseTimeTag.java
  
  Index: MaxResponseTimeTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/MaxResponseTimeTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MaxResponseTimeTag.java	11 Jul 2002 05:53:29 -0000	1.1
  +++ MaxResponseTimeTag.java	11 Jul 2002 12:30:59 -0000	1.2
  @@ -73,7 +73,7 @@
   public class MaxResponseTimeTag extends ValidatorTag {
       
       /** maximum time for a request */
  -    private int maximumResponseTime;
  +    private int _limit = 30000; // 30 seconds
       
       /** Creates a new instance of MaxResponseTimeTag */
       public MaxResponseTimeTag() {
  @@ -91,24 +91,24 @@
           String responseTime = (String) getContext().getVariable(varName);
           if (responseTime != null) {
               long time = Integer.parseInt(responseTime);
  -            if (time > getMaximumResponseTime()) {
  +            if (time > getLimit()) {
                   invokeBody(xmlOutput);
               }
           }
       }
       
  -    /** Getter for property maximumResponseTime.
  -     * @return Value of property maximumResponseTime.
  +    /** Getter for property limit.
  +     * @return Value of property limit.
        */
  -    public int getMaximumResponseTime() {
  -        return maximumResponseTime;
  +    public int getLimit() {
  +        return _limit;
       }
       
  -    /** Setter for property maximumResponseTime.
  -     * @param maximumResponseTime New value of property maximumResponseTime.
  +    /** Setter for property limit.
  +     * @param maximumResponseTime New value of property limit.
        */
  -    public void setMaximumResponseTime(int maximumResponseTime) {
  -        this.maximumResponseTime = maximumResponseTime;
  +    public void setLimit(int limit) {
  +        _limit = limit;
       }
       
   }
  
  
  

--
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