getting css content and then resolving image references of external css files for Link Validator
===

I am  creating a Link Validator, which takes a seed page and validates all the links in that domain. for e.g. http://www.example.com/ it should validate all the links which are part of example.com

I am four kind of files 
1. Content Pages
2. Images 
3. CSS
4. Javascript files

Now I am using JSOUP Library for Content Pages, Images and Javascript Files. 
For CSS which are external the problem is I want to get the content and then get all the selectors where it has url reference like
`
background-image : url('images.png');
border-image: url('border.png');
`
so how do I resolve the url of these images to absolute URL. I think the JSOUP API does not provide any functionality related to CSS Selectors and resolving their value as absolute url. 

Yes, I can do tedious string manipulation but I think it will be error prone. So I was thinking about using something built - in. 

I hope I made myself clear. 
Thanks in advance. 


