com.liferay.util.servlet
Class PortletResponseUtil
java.lang.Object
com.liferay.util.servlet.PortletResponseUtil
public class PortletResponseUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
byte[] bytes)
|
static void |
sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
byte[] bytes,
java.lang.String contentType)
|
static void |
sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
java.io.InputStream is)
|
static void |
sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
java.io.InputStream is,
int contentLength,
java.lang.String contentType)
|
static void |
sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
java.io.InputStream is,
java.lang.String contentType)
|
protected static void |
setHeaders(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
java.lang.String contentType)
|
static void |
write(javax.portlet.ResourceResponse resourceResponse,
byte[] bytes)
|
static void |
write(javax.portlet.ResourceResponse resourceResponse,
byte[] bytes,
int contentLength)
|
static void |
write(javax.portlet.ResourceResponse resourceResponse,
java.io.InputStream is)
|
static void |
write(javax.portlet.ResourceResponse resourceResponse,
java.io.InputStream is,
int contentLength)
|
static void |
write(javax.portlet.ResourceResponse resourceResponse,
java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletResponseUtil
public PortletResponseUtil()
sendFile
public static void sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
sendFile
public static void sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
byte[] bytes,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException
sendFile
public static void sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
sendFile
public static void sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
java.io.InputStream is,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException
sendFile
public static void sendFile(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
java.io.InputStream is,
int contentLength,
java.lang.String contentType)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.portlet.ResourceResponse resourceResponse,
java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.portlet.ResourceResponse resourceResponse,
byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.portlet.ResourceResponse resourceResponse,
byte[] bytes,
int contentLength)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.portlet.ResourceResponse resourceResponse,
java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
write
public static void write(javax.portlet.ResourceResponse resourceResponse,
java.io.InputStream is,
int contentLength)
throws java.io.IOException
- Throws:
java.io.IOException
setHeaders
protected static void setHeaders(javax.portlet.ResourceResponse resourceResponse,
java.lang.String fileName,
java.lang.String contentType)