You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ni...@apache.org on 2011/05/28 00:41:03 UTC
svn commit: r1128496 -
/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
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;