Expand my Community achievements bar.

SOLVED

Custom handling for .pdf / specific extension request

Avatar

Level 1

We have a requirement where we need to add a custom header with dynamic value for .pdf requests we thought of below options:

1) Create a filter and intercept the request.

2) Rewrite the url to add custom selector in dispatcher, so that my custom servlet will be resolved.

Can you please suggest us if you have any other efficient solution to achieve this.

1 Accepted Solution

Avatar

Correct answer by
Employee

Assuming that the only varation is the header, I would suggest doing this as a filter.

View solution in original post

2 Replies

Avatar

Level 1
        Can we do it any other way other than filter? Is there any possibility to override the request processor classes?

Avatar

Correct answer by
Employee

Assuming that the only varation is the header, I would suggest doing this as a filter.