Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-35290

Improve Portlet/ServletResponseUtil API to allow specifying a contentDispositionType

    Details

      Description

      New methods to PortletResponseUtil:

      	public static void sendFile(
      			PortletRequest portletRequest, MimeResponse mimeResponse,
      			String fileName, byte[] bytes, String contentType,
      			String contentDispositionType)
      
      	public static void sendFile(
      			PortletRequest portletRequest, MimeResponse mimeResponse,
      			String fileName, InputStream is, int contentLength,
      			String contentType, String contentDispositionType)
      

      New methods to ServletResponseUtil:

      	public static void sendFile(
      			HttpServletRequest request, HttpServletResponse response,
      			String fileName, byte[] bytes, String contentType,
      			String contentDispositionType)
      
      	public static void sendFile(
      			HttpServletRequest request, HttpServletResponse response,
      			String fileName, InputStream is, long contentLength,
      			String contentType, String contentDispositionType)
      

      Example contentDispositionTypes: "attachment", "inline", etc.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.saechang Michael Saechang
              Reporter:
              amos.fong Amos Fong
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 25 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M6