Package com.liferay.portlet.internal
Class ResourceResponseImpl
Object
com.liferay.portlet.internal.PortletResponseImpl
com.liferay.portlet.internal.MimeResponseImpl
com.liferay.portlet.internal.ResourceResponseImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse
,com.liferay.portal.kernel.portlet.LiferayResourceResponse
,MimeResponse
,PortletResponse
,ResourceResponse
public class ResourceResponseImpl
extends MimeResponseImpl
implements com.liferay.portal.kernel.portlet.LiferayResourceResponse
- Author:
- Brian Wing Shun Chan, Neil Griffin
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.portlet.MimeResponse
MimeResponse.Copy
-
Field Summary
Fields inherited from class com.liferay.portlet.internal.PortletResponseImpl
httpServletResponse, portletName, portletRequestImpl
Fields inherited from interface javax.portlet.MimeResponse
CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT
Fields inherited from interface javax.portlet.ResourceResponse
HTTP_STATUS_CODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDateHeader
(String name, long date) void
void
addIntHeader
(String name, int value) void
addProperty
(javax.servlet.http.Cookie cookie) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) int
void
setCharacterEncoding
(String charset) void
setContentLength
(int length) void
setContentLengthLong
(long length) void
setDateHeader
(String name, long date) void
void
setIntHeader
(String name, int value) void
void
setStatus
(int statusCode) Methods inherited from class com.liferay.portlet.internal.MimeResponseImpl
flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCalledFlushBuffer, isCalledGetPortletOutputStream, isCalledGetWriter, isCommitted, reset, resetBuffer, setBufferSize, setContentType
Methods inherited from class com.liferay.portlet.internal.PortletResponseImpl
addProperty, addProperty, clearHeaders, createActionURL, createActionURL, createActionURL, createActionURL, createElement, createLiferayPortletURL, createLiferayPortletURL, createLiferayPortletURL, createLiferayPortletURL, createLiferayPortletURL, createLiferayPortletURL, createRenderURL, createRenderURL, createRenderURL, createRenderURL, createResourceURL, createResourceURL, encodeURL, getCompanyId, getHttpServletRequest, getHttpServletResponse, getLayout, getNamespace, getPlid, getPortlet, getPortletName, getPortletPreferences, getPortletRequest, getProperties, getProperty, getPropertyNames, getPropertyValues, getUrlEncoder, init, setPlid, setProperty, setURLEncoder, transferHeaders, transferMarkupHeadElements
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
createActionURL, createActionURL, createActionURL, createActionURL, createLiferayPortletURL, createLiferayPortletURL, createLiferayPortletURL, createLiferayPortletURL, createLiferayPortletURL, createLiferayPortletURL, createRenderURL, createRenderURL, createRenderURL, createRenderURL, createResourceURL, createResourceURL, getHttpServletResponse, getPortlet, getProperties, setURLEncoder, transferHeaders, transferMarkupHeadElements
Methods inherited from interface javax.portlet.MimeResponse
flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setContentType
Methods inherited from interface javax.portlet.PortletResponse
addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty
Methods inherited from interface javax.portlet.ResourceResponse
createActionURL, createActionURL, createRenderURL, createRenderURL, createResourceURL
-
Constructor Details
-
ResourceResponseImpl
public ResourceResponseImpl()
-
-
Method Details
-
addDateHeader
- Specified by:
addDateHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Overrides:
addDateHeader
in classPortletResponseImpl
-
addHeader
- Specified by:
addHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Overrides:
addHeader
in classPortletResponseImpl
-
addIntHeader
- Specified by:
addIntHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Overrides:
addIntHeader
in classPortletResponseImpl
-
addProperty
public void addProperty(javax.servlet.http.Cookie cookie) - Specified by:
addProperty
in interfacePortletResponse
- Overrides:
addProperty
in classPortletResponseImpl
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Overrides:
createLiferayPortletURL
in classPortletResponseImpl
-
getLifecycle
- Specified by:
getLifecycle
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Specified by:
getLifecycle
in classPortletResponseImpl
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceResourceResponse
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfaceResourceResponse
-
setContentLength
public void setContentLength(int length) - Specified by:
setContentLength
in interfaceResourceResponse
-
setContentLengthLong
public void setContentLengthLong(long length) - Specified by:
setContentLengthLong
in interfaceResourceResponse
-
setDateHeader
- Specified by:
setDateHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Overrides:
setDateHeader
in classPortletResponseImpl
-
setHeader
- Specified by:
setHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Overrides:
setHeader
in classPortletResponseImpl
-
setIntHeader
- Specified by:
setIntHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Overrides:
setIntHeader
in classPortletResponseImpl
-
setLocale
- Specified by:
setLocale
in interfaceResourceResponse
-
setStatus
public void setStatus(int statusCode) - Specified by:
setStatus
in interfaceResourceResponse
-