Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-668

Allow ProductQueryServlet subclasses to override "Content-disposition" header

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.7
    • Component/s: grid
    • Labels:
      None
    • Skill Level:
      Don't Know (Unsure) - The default level

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              cinquini Luca Cinquini
              Reporter:
              cinquini Luca Cinquini
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: