SlingServlet to handle GET requests from multiple extensions
Hi All,
I'm using AEM6.4 and for a particular case I have a custom sling servlet must address get requests from multiple extensions.
Eg:
- http://localhost:4502/content/rc/abs/en/membership/interviews/AESSVID0250.pdf
- http://localhost:4502/content/rc/abs/en/membership/interviews/AESSVID0250.zip
- http://localhost:4502/content/rc/abs/en/membership/interviews/AESSVID0250.xls
- .. etc
Hence, for any GET request from any of the above URLs('/content/rc/*/*.zip' ,etc).
Now, I have the below code snippet which works completely fine for '.pdf' extension but fails for any other extension.
I doubt that if it has to do anything with the way I have defined multiple extensions because as do notice below pdf is the second extension defined, i.e. its ignoring all other extensions.

How can I address this?
Any suggestions/help would be highly appreciated.
arunpatidar26 smacdonald2008
Thanks & Regards,

