I have a list of URLs which has to be processed and the result should be only the RSS feed URLS in that list.
How can I identify whether the given link is a RSS feed URL or not?
I need to build the program in Java and for your knowledge, am a beginner in Java.
There are a few things you can try, off of the top of my head:
Content-Type
the server returns for the given URL. However, this may not be definitive and a server may not necessarily return the correct header.