commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/validators BaseValidator.java
Date Mon, 07 Jan 2002 10:48:35 GMT
jefft       02/01/07 02:48:34

  Modified:    latka/src/java/org/apache/commons/latka/validators
                        BaseValidator.java
  Log:
  Added a logger for validators. Useful for more complex validators, where the
  user may want to see exactly what's going on 'on the wire'.
  
  Revision  Changes    Path
  1.5       +7 -0      jakarta-commons/latka/src/java/org/apache/commons/latka/validators/BaseValidator.java
  
  Index: BaseValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/validators/BaseValidator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- BaseValidator.java	23 Aug 2001 16:24:26 -0000	1.4
  +++ BaseValidator.java	7 Jan 2002 10:48:34 -0000	1.5
  @@ -65,10 +65,16 @@
   import org.apache.commons.latka.http.Request;
   import org.apache.commons.latka.http.Response;
   
  +import org.apache.log4j.Category;
  +
   /**
    * @author Rodney Waldhoff
    */
   public abstract class BaseValidator implements Validator {
  +    // ------------------------------------------------------- Instance Variables 
  +
  +    protected final Category _log = Category.getInstance(BaseValidator.class);
  +
       // ------------------------------------------------------- Abstract Methods
   
       public abstract void validate(Response response) throws ValidationException;
  @@ -102,4 +108,5 @@
       protected void fail(String reason) throws ValidationException {
           throw new ValidationException(getLabel(),reason);
       }
  +
   }
  
  
  

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