commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Updated: (VALIDATOR-138) [validator] Url Validation Error Codes
Date Wed, 19 Jul 2006 13:25:29 GMT
     [ ]

Niall Pemberton updated VALIDATOR-138:

    Component/s: Routines

> [validator] Url Validation Error Codes
> --------------------------------------
>                 Key: VALIDATOR-138
>                 URL:
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Routines
>    Affects Versions: Nightly Builds
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Niall Pemberton
>            Priority: Minor
>         Attachments: UrlValidatorCodes.txt
> I am attaching a patch which adds the ability for the UrlValidator to return an 
> error code indicating what part of the url validation failed (following a 
> discussion on struts developers list).
> The existing isValid(value) method still works returning true/false.
> I have added isValid(Object value, boolean expandedCode) method which returns 
> an integer code.
> 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.
> I have run the existing validator tests which all passed. If your happy with 
> this change, I will submit a patch to the tests which check the specific code 
> returned.
> Niall

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message