Hi I have to make a program to parse html document and check for broken links.
I did the first part and now wondering is there a method or class that checks if the link is valid?if not I assumed I can construst a method myself, like get the response code and see if 200.
Any help appreciated.
thanks.
by the way I found this http://commons.apache.org/validator/apidocs/org/apache/commons/validator/UrlValidator.html
but when I tried to compile I got
checkUrl.java:91: cannot find symbol
symbol : class UrlValidator
location: class checkUrl
UrlValidator urlValidator = new UrlValidator();