Liferay 6.0.5

com.liferay.util.servlet
Class ServletResponseUtil

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

public class ServletResponseUtil
extends Object


Constructor Summary
ServletResponseUtil()
           
 
Method Summary
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes)
           
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes, String contentType)
           
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream is)
           
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, int contentLength, String contentType)
           
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, String contentType)
           
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes)
          Deprecated.  
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes, String contentType)
          Deprecated.  
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream is)
          Deprecated.  
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, int contentLength, String contentType)
          Deprecated.  
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, String contentType)
          Deprecated.  
protected static void setHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, String contentType)
           
static void write(javax.servlet.http.HttpServletResponse response, byte[] bytes)
           
static void write(javax.servlet.http.HttpServletResponse response, byte[][] bytesArray)
           
static void write(javax.servlet.http.HttpServletResponse response, byte[] bytes, int contentLength)
           
static void write(javax.servlet.http.HttpServletResponse response, InputStream is)
           
static void write(javax.servlet.http.HttpServletResponse response, InputStream is, int contentLength)
           
static void write(javax.servlet.http.HttpServletResponse response, String s)
           
static void write(javax.servlet.http.HttpServletResponse response, StringServletResponse stringResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletResponseUtil

public ServletResponseUtil()
Method Detail

sendFile

public static void sendFile(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            byte[] bytes)
                     throws IOException
Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            byte[] bytes,
                            String contentType)
                     throws IOException
Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            InputStream is)
                     throws IOException
Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            InputStream is,
                            int contentLength,
                            String contentType)
                     throws IOException
Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            InputStream is,
                            String contentType)
                     throws IOException
Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            byte[] bytes)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            byte[] bytes,
                            String contentType)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            InputStream is)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            InputStream is,
                            int contentLength,
                            String contentType)
                     throws IOException
Deprecated. 

Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            InputStream is,
                            String contentType)
                     throws IOException
Deprecated. 

Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletResponse response,
                         byte[] bytes)
                  throws IOException
Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletResponse response,
                         byte[] bytes,
                         int contentLength)
                  throws IOException
Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletResponse response,
                         byte[][] bytesArray)
                  throws IOException
Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletResponse response,
                         InputStream is)
                  throws IOException
Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletResponse response,
                         InputStream is,
                         int contentLength)
                  throws IOException
Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletResponse response,
                         String s)
                  throws IOException
Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletResponse response,
                         StringServletResponse stringResponse)
                  throws IOException
Throws:
IOException

setHeaders

protected static void setHeaders(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 String fileName,
                                 String contentType)

Liferay 6.0.5