Class HttpMimeTypeListener

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.IMimeTypeListener

    public class HttpMimeTypeListener
    extends Object
    implements org.pentaho.platform.api.engine.IMimeTypeListener
    • Constructor Detail

      • HttpMimeTypeListener

        public HttpMimeTypeListener​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
      • HttpMimeTypeListener

        public HttpMimeTypeListener​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    String title)
    • Method Detail

      • setName

        public void setName​(String name)
        Specified by:
        setName in interface org.pentaho.platform.api.engine.IMimeTypeListener
      • setMimeType

        public void setMimeType​(String mimeType)
        Specified by:
        setMimeType in interface org.pentaho.platform.api.engine.IMimeTypeListener
      • buildContentDispositionValue

        public static String buildContentDispositionValue​(String fileName,
                                                          boolean isAttachment)
        Uses RFC2231/5987 encoded UTF-8 to support internationalized file names on modern browsers.
        Parameters:
        fileName -
        Returns: