Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

A generic way to handle requests apart an ordinary Filter

Avatar

Level 3

Hi All,

What is the best way to handle multiple urls in a generic way?

It should be able to handle urls like :

http://somehost/somecategory/somesubcategory/page1.html

http://somehost/somecategory/somesubcategory/pageN.html

The only way I can think of is a Filter. But by definition a filter should alter some headers or inject some information and in my case I need to generate the whole response. 

 

Thanks in advance,

Yura.

1 Accepted Solution

Avatar

Correct answer by
Level 10

The question was not clear. You can Develop using resource type & in filter.resource.type mention all the applicable resources type for page1 to pageN if there are variations.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

The question was not clear. You can Develop using resource type & in filter.resource.type mention all the applicable resources type for page1 to pageN if there are variations.