Class PortletResponseUtil

Object
com.liferay.portal.kernel.portlet.PortletResponseUtil

public class PortletResponseUtil extends Object
Author:
Brian Wing Shun Chan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, byte[] bytes)
     
    static void
    sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, byte[] bytes, String contentType)
     
    static void
    sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, byte[] bytes, String contentType, String contentDispositionType)
     
    static void
    sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, byte[] bytes, String contentType, String contentDispositionType, String cacheControlValue)
     
    static void
    sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, InputStream inputStream)
     
    static void
    sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, InputStream inputStream, int contentLength, String contentType)
     
    static void
    sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, InputStream inputStream, int contentLength, String contentType, String contentDispositionType)
     
    static void
    sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, InputStream inputStream, String contentType)
     
    protected static void
    setContentLength(jakarta.portlet.ResourceResponse response, long contentLength)
     
    protected static void
    setHeaders(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String cacheControlValue, String contentDispositionType, String contentType, String fileName)
     
    static void
    write(jakarta.portlet.MimeResponse mimeResponse, byte[] bytes)
     
    static void
    write(jakarta.portlet.MimeResponse mimeResponse, byte[][] bytesArray)
     
    static void
    write(jakarta.portlet.MimeResponse mimeResponse, byte[] bytes, int offset, int contentLength)
     
    static void
    write(jakarta.portlet.MimeResponse mimeResponse, File file)
     
    static void
    write(jakarta.portlet.MimeResponse mimeResponse, InputStream inputStream)
     
    static void
    write(jakarta.portlet.MimeResponse mimeResponse, InputStream inputStream, int contentLength)
     
    static void
    write(jakarta.portlet.MimeResponse mimeResponse, String s)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PortletResponseUtil

      public PortletResponseUtil()
  • Method Details

    • sendFile

      public static void sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, byte[] bytes) throws IOException
      Throws:
      IOException
    • sendFile

      public static void sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, byte[] bytes, String contentType) throws IOException
      Throws:
      IOException
    • sendFile

      public static void sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, byte[] bytes, String contentType, String contentDispositionType) throws IOException
      Throws:
      IOException
    • sendFile

      public static void sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, byte[] bytes, String contentType, String contentDispositionType, String cacheControlValue) throws IOException
      Throws:
      IOException
    • sendFile

      public static void sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, InputStream inputStream) throws IOException
      Throws:
      IOException
    • sendFile

      public static void sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, InputStream inputStream, int contentLength, String contentType) throws IOException
      Throws:
      IOException
    • sendFile

      public static void sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, InputStream inputStream, int contentLength, String contentType, String contentDispositionType) throws IOException
      Throws:
      IOException
    • sendFile

      public static void sendFile(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String fileName, InputStream inputStream, String contentType) throws IOException
      Throws:
      IOException
    • write

      public static void write(jakarta.portlet.MimeResponse mimeResponse, byte[] bytes) throws IOException
      Throws:
      IOException
    • write

      public static void write(jakarta.portlet.MimeResponse mimeResponse, byte[] bytes, int offset, int contentLength) throws IOException
      Throws:
      IOException
    • write

      public static void write(jakarta.portlet.MimeResponse mimeResponse, byte[][] bytesArray) throws IOException
      Throws:
      IOException
    • write

      public static void write(jakarta.portlet.MimeResponse mimeResponse, File file) throws IOException
      Throws:
      IOException
    • write

      public static void write(jakarta.portlet.MimeResponse mimeResponse, InputStream inputStream) throws IOException
      Throws:
      IOException
    • write

      public static void write(jakarta.portlet.MimeResponse mimeResponse, InputStream inputStream, int contentLength) throws IOException
      Throws:
      IOException
    • write

      public static void write(jakarta.portlet.MimeResponse mimeResponse, String s) throws IOException
      Throws:
      IOException
    • setContentLength

      protected static void setContentLength(jakarta.portlet.ResourceResponse response, long contentLength)
    • setHeaders

      protected static void setHeaders(jakarta.portlet.PortletRequest portletRequest, jakarta.portlet.MimeResponse mimeResponse, String cacheControlValue, String contentDispositionType, String contentType, String fileName)