--- Niall Pemberton <[EMAIL PROTECTED]> wrote:
> I have submitted a patch in commons to UrlValidator which returns a code
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=28190
> 
> The existing isValid(value) method still works returning true/false.
> 
> I have added isValid(Object value, boolean expandedCode) method which
> returns
> an integer code.

Why does it take an Object parameter instead of a String like the other
isValid() method?

David

> 
> If expandedCode is false it returns a code indicating which part of the
> url
> is
> invalid (general format, scheme, authority, path, query or fragment).
> 
> If expandedCode is true it returns a more detailled code indicating a
> more
> specific error with the url.
> 
> Niall
> 
> Robert Leland wrote:
> >
> > Given that fits with the Validator framework, I know its
> implementation
> would be easy.  The grouping of error message is also nice.
> > Since we could use an int/long then I would probably group items by
> powers
> of two, but thats just a preference. If you have already created a patch
> with the above scheme I would commit it unchanged.
> >
> > -Rob
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to