commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1128496 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
Date Fri, 27 May 2011 22:41:03 GMT
Author: nick
Date: Fri May 27 22:41:02 2011
New Revision: 1128496

URL: http://svn.apache.org/viewvc?rev=1128496&view=rev
Log:
VALIDATOR-248 Add a note about the more complex options available from the RefexValidator
constructor

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java?rev=1128496&r1=1128495&r2=1128496&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
Fri May 27 22:41:02 2011
@@ -89,7 +89,10 @@ public class UrlValidator implements Ser
     public static final long NO_FRAGMENTS = 1 << 2;
     
     /**
-     * Allow local URLs, such as http://localhost/ or http://machine/ 
+     * Allow local URLs, such as http://localhost/ or http://machine/ .
+     * This enables a broad-brush check, for complex local machine name 
+     *  validation requirements you should create your validator with
+     *  a {@link RegexValidator} instead ({@link #UrlValidator(RegexValidator, long)})  
      */
     public static final long ALLOW_LOCAL_URLS = 1 << 3;
 



Mime
View raw message