[
https://issues.apache.org/jira/browse/OODT-668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13923931#comment-13923931
]
Luca Cinquini commented on OODT-668:
------------------------------------
It might also be a good idea to expand the method signature in case subclasses
need more information to suggest a filename. For example, the signature could
be:
protected void suggestFilename(QueryHandler handler, Result result,
HttpServletResponse res)
This change should be totally transparent to all clients.
> Allow ProductQueryServlet subclasses to override "Content-disposition" header
> -----------------------------------------------------------------------------
>
> Key: OODT-668
> URL: https://issues.apache.org/jira/browse/OODT-668
> Project: OODT
> Issue Type: Improvement
> Components: grid
> Affects Versions: 0.6
> Reporter: Luca Cinquini
> Assignee: Luca Cinquini
> Fix For: 0.7
>
>
> When browsers download attachments, they set the filename by looking at the
> "Content-disposition" header.
> Currently, the ProductQueryServlet class suggests a filename that is equal to
> the name of the requested resource. This might not always be the best choice:
> for example, an application that receive a request to zip a bunch of files
> and return the archive might want to name the file as "products_datetime.zip".
> This behavior could be achieved by simply changing the visibility of the
> method "suggestFilename" (and perhaps "displayable") in the class
> ProductQueryServlet from private to protected.
--
This message was sent by Atlassian JIRA
(v6.2#6252)