Liferay 6.2-ce-ga5

com.liferay.portal.kernel.servlet
Class ServletResponseUtil

java.lang.Object
  extended by com.liferay.portal.kernel.servlet.ServletResponseUtil

public class ServletResponseUtil
extends Object


Constructor Summary
ServletResponseUtil()
           
 
Method Summary
protected static InputStream copyRange(InputStream inputStream, OutputStream outputStream, long start, long length)
           
static List<Range> getRanges(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, long length)
           
static boolean isClientAbortException(IOException ioe)
           
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, byte[] bytes, String contentType, String contentDispositionType)
           
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream)
           
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream, long contentLength, String contentType)
           
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream, long contentLength, String contentType, String contentDispositionType)
           
static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream, String contentType)
           
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes)
          Deprecated. As of 6.1.0
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes, String contentType)
          Deprecated. As of 6.1.0
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream)
          Deprecated. As of 6.1.0
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream, int contentLength, String contentType)
          Deprecated. As of 6.1.0
static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream, String contentType)
          Deprecated. As of 6.1.0
static void sendFileWithRangeHeader(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream inputStream, long contentLength, String contentType)
           
protected static void setContentLength(javax.servlet.http.HttpServletResponse response, long contentLength)
           
protected static void setHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, String contentType, String contentDispositionType)
           
protected static void setHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, String contentType, String contentDispositionType, Range range)
           
static void write(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, List<Range> ranges, InputStream inputStream, long fullLength, String contentType)
           
static void write(javax.servlet.http.HttpServletResponse response, BufferCacheServletResponse bufferCacheServletResponse)
           
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 offset, int contentLength)
           
static void write(javax.servlet.http.HttpServletResponse response, ByteBuffer byteBuffer)
           
static void write(javax.servlet.http.HttpServletResponse response, CharBuffer charBuffer)
           
static void write(javax.servlet.http.HttpServletResponse response, File file)
           
static void write(javax.servlet.http.HttpServletResponse response, InputStream inputStream)
           
static void write(javax.servlet.http.HttpServletResponse response, InputStream inputStream, long contentLength)
           
static void write(javax.servlet.http.HttpServletResponse response, String s)
           
 
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

getRanges

public static List<Range> getRanges(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    long length)
                             throws IOException
Throws:
IOException

isClientAbortException

public static boolean isClientAbortException(IOException ioe)

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,
                            byte[] bytes,
                            String contentType,
                            String contentDispositionType)
                     throws IOException
Throws:
IOException

sendFile

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

sendFile

public static void sendFile(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            InputStream inputStream,
                            long 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 inputStream,
                            long contentLength,
                            String contentType,
                            String contentDispositionType)
                     throws IOException
Throws:
IOException

sendFile

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

sendFile

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

Throws:
IOException

sendFile

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

Throws:
IOException

sendFile

public static void sendFile(javax.servlet.http.HttpServletResponse response,
                            String fileName,
                            InputStream inputStream)
                     throws IOException
Deprecated. As of 6.1.0

Throws:
IOException

sendFile

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

Throws:
IOException

sendFile

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

Throws:
IOException

sendFileWithRangeHeader

public static void sendFileWithRangeHeader(javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           String fileName,
                                           InputStream inputStream,
                                           long contentLength,
                                           String contentType)
                                    throws IOException
Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         String fileName,
                         List<Range> ranges,
                         InputStream inputStream,
                         long fullLength,
                         String contentType)
                  throws IOException
Throws:
IOException

write

public static void write(javax.servlet.http.HttpServletResponse response,
                         BufferCacheServletResponse bufferCacheServletResponse)
                  throws IOException
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 offset,
                         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,
                         ByteBuffer byteBuffer)
                  throws IOException
Throws:
IOException

write

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

write

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

write

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

write

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

write

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

copyRange

protected static InputStream copyRange(InputStream inputStream,
                                       OutputStream outputStream,
                                       long start,
                                       long length)
                                throws IOException
Throws:
IOException

setContentLength

protected static void setContentLength(javax.servlet.http.HttpServletResponse response,
                                       long contentLength)

setHeaders

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

setHeaders

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

Liferay 6.2-ce-ga5