This content has been marked as final. Show 1 reply
- Prefix-map the Document Store Servlet and then apply a servlet filter to it that will reject (HTTP 404) any request that doesn't end in .pdf. Then the servlet container will use the standard download
- The servlet spec requires that prefix matches before suffix (see chapter
Mapping Requests to Servlets). So you could create a simple download servlet, prefix-map it to some path and let it send files that exist to the client. This servlet will take precedence over the Document Store Servlet.