com.liferay.util.servlet
Class ServletResponseUtil
java.lang.Object
com.liferay.util.servlet.ServletResponseUtil
public class ServletResponseUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
cleanUp(java.io.InputStream is)
|
static void |
cleanUp(java.io.OutputStream os)
|
static void |
cleanUp(java.io.OutputStream os,
java.io.InputStream is)
|
static void |
sendFile(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
byte[] byteArray)
|
static void |
sendFile(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
byte[] byteArray,
java.lang.String contentType)
|
static void |
sendFile(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
java.io.InputStream is)
|
static void |
sendFile(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
java.io.InputStream is,
java.lang.String contentType)
|
protected static void |
setHeaders(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
java.lang.String contentType)
|
static void |
write(javax.servlet.http.HttpServletResponse res,
byte[] byteArray)
|
static void |
write(javax.servlet.http.HttpServletResponse res,
byte[] byteArray,
int contentLength)
|
static void |
write(javax.servlet.http.HttpServletResponse res,
java.io.InputStream is)
|
static void |
write(javax.servlet.http.HttpServletResponse res,
java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONTENT_TYPE
public static final java.lang.String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
ServletResponseUtil
public ServletResponseUtil()
cleanUp
public static void cleanUp(java.io.InputStream is)
cleanUp
public static void cleanUp(java.io.OutputStream os)
cleanUp
public static void cleanUp(java.io.OutputStream os,
java.io.InputStream is)
sendFile
public static void sendFile(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
byte[] byteArray)
throws java.io.IOException
- Throws:
java.io.IOException
sendFile
public static void sendFile(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
byte[] byteArray,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException
sendFile
public static void sendFile(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
sendFile
public static void sendFile(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
java.io.InputStream is,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.servlet.http.HttpServletResponse res,
java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.servlet.http.HttpServletResponse res,
byte[] byteArray)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.servlet.http.HttpServletResponse res,
byte[] byteArray,
int contentLength)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.servlet.http.HttpServletResponse res,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
setHeaders
protected static void setHeaders(javax.servlet.http.HttpServletResponse res,
java.lang.String fileName,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException