Custom handling for .pdf / specific extension request | Community
Skip to main content
October 16, 2015
Solved

Custom handling for .pdf / specific extension request

  • October 16, 2015
  • 2 replies
  • 682 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

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

2 replies

October 16, 2015
        Can we do it any other way other than filter? Is there any possibility to override the request processor classes?
JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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