Liferay 6.0.5

com.liferay.util.servlet
Class PortletResponseUtil

java.lang.Object
  extended by com.liferay.util.servlet.PortletResponseUtil

public class PortletResponseUtil
extends Object


Constructor Summary
PortletResponseUtil()
           
 
Method Summary
static void sendFile(MimeResponse mimeResponse, String fileName, byte[] bytes)
          Deprecated.  
static void sendFile(MimeResponse mimeResponse, String fileName, byte[] bytes, String contentType)
          Deprecated.  
static void sendFile(MimeResponse mimeResponse, String fileName, InputStream is)
          Deprecated.  
static void sendFile(MimeResponse mimeResponse, String fileName, InputStream is, int contentLength, String contentType)
          Deprecated.  
static void sendFile(MimeResponse mimeResponse, String fileName, InputStream is, String contentType)
          Deprecated.  
static void sendFile(PortletRequest portletRequest, MimeResponse mimeResponse, String fileName, byte[] bytes)
           
static void sendFile(PortletRequest portletRequest, MimeResponse mimeResponse, String fileName, byte[] bytes, String contentType)
           
static void sendFile(PortletRequest portletRequest, MimeResponse mimeResponse, String fileName, InputStream is)
           
static void sendFile(PortletRequest portletRequest, MimeResponse mimeResponse, String fileName, InputStream is, int contentLength, String contentType)
           
static void sendFile(PortletRequest portletRequest, MimeResponse mimeResponse, String fileName, InputStream is, String contentType)
           
protected static void setHeaders(PortletRequest portletRequest, MimeResponse mimeResponse, String fileName, String contentType)
           
static void write(MimeResponse mimeResponse, byte[] bytes)
           
static void write(MimeResponse mimeResponse, byte[][] bytesArray)
           
static void write(MimeResponse mimeResponse, byte[] bytes, int contentLength)
           
static void write(MimeResponse mimeResponse, InputStream is)
           
static void write(MimeResponse mimeResponse, InputStream is, int contentLength)
           
static void write(MimeResponse mimeResponse, String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletResponseUtil

public PortletResponseUtil()
Method Detail

sendFile

public static void sendFile(MimeResponse mimeResponse,
                            String fileName,
                            byte[] bytes)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

public static void sendFile(MimeResponse mimeResponse,
                            String fileName,
                            byte[] bytes,
                            String contentType)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

public static void sendFile(MimeResponse mimeResponse,
                            String fileName,
                            InputStream is)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

public static void sendFile(MimeResponse mimeResponse,
                            String fileName,
                            InputStream is,
                            int contentLength,
                            String contentType)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

public static void sendFile(MimeResponse mimeResponse,
                            String fileName,
                            InputStream is,
                            String contentType)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

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

sendFile

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

sendFile

public static void sendFile(PortletRequest portletRequest,
                            MimeResponse mimeResponse,
                            String fileName,
                            InputStream is)
                     throws IOException
Throws:
IOException

sendFile

public static void sendFile(PortletRequest portletRequest,
                            MimeResponse mimeResponse,
                            String fileName,
                            InputStream is,
                            int contentLength,
                            String contentType)
                     throws IOException
Throws:
IOException

sendFile

public static void sendFile(PortletRequest portletRequest,
                            MimeResponse mimeResponse,
                            String fileName,
                            InputStream is,
                            String contentType)
                     throws IOException
Throws:
IOException

write

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

write

public static void write(MimeResponse mimeResponse,
                         byte[] bytes,
                         int contentLength)
                  throws IOException
Throws:
IOException

write

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

write

public static void write(MimeResponse mimeResponse,
                         InputStream is)
                  throws IOException
Throws:
IOException

write

public static void write(MimeResponse mimeResponse,
                         InputStream is,
                         int contentLength)
                  throws IOException
Throws:
IOException

write

public static void write(MimeResponse mimeResponse,
                         String s)
                  throws IOException
Throws:
IOException

setHeaders

protected static void setHeaders(PortletRequest portletRequest,
                                 MimeResponse mimeResponse,
                                 String fileName,
                                 String contentType)

Liferay 6.0.5