|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.kernel.servlet.ServletResponseUtil
public class ServletResponseUtil
Constructor Summary | |
---|---|
ServletResponseUtil()
|
Method Summary | |
---|---|
protected static void |
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)
|
protected 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 is)
|
static void |
sendFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String fileName,
InputStream is,
long contentLength,
String contentType)
|
static void |
sendFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String fileName,
InputStream is,
long contentLength,
String contentType,
String contentDispositionType)
|
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,
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,
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,
File file)
|
static void |
write(javax.servlet.http.HttpServletResponse response,
InputStream is)
|
static void |
write(javax.servlet.http.HttpServletResponse response,
InputStream is,
long 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 |
---|
public ServletResponseUtil()
Method Detail |
---|
public static List<Range> getRanges(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, long length) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes, String contentType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes, String contentType, String contentDispositionType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream is) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, long contentLength, String contentType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, long contentLength, String contentType, String contentDispositionType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, String contentType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, byte[] bytes, String contentType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream is) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, int contentLength, String contentType) throws IOException
IOException
public static void sendFile(javax.servlet.http.HttpServletResponse response, String fileName, InputStream is, String contentType) throws IOException
IOException
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
IOException
public static void write(javax.servlet.http.HttpServletResponse response, byte[] bytes) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse response, byte[] bytes, int offset, int contentLength) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse response, byte[][] bytesArray) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse response, ByteBuffer byteBuffer) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse response, File file) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse response, InputStream is) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse response, InputStream is, long contentLength) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse response, String s) throws IOException
IOException
public static void write(javax.servlet.http.HttpServletResponse response, StringServletResponse stringResponse) throws IOException
IOException
protected static void copyRange(InputStream inputStream, OutputStream outputStream, long start, long length) throws IOException
IOException
protected static boolean isClientAbortException(IOException ioe)
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)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |