Url extractor develop in java