Package com.liferay.portlet.internal
Class PortletResponseImpl
Object
com.liferay.portlet.internal.PortletResponseImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse
,PortletResponse
- Direct Known Subclasses:
MimeResponseImpl
,StateAwareResponseImpl
public abstract class PortletResponseImpl
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletResponse
- Author:
- Brian Wing Shun Chan, Neil Griffin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.servlet.http.HttpServletResponse
protected String
protected PortletRequestImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDateHeader
(String name, long date) void
void
addIntHeader
(String name, int value) void
addProperty
(String key, String value) void
addProperty
(String key, Element element) void
addProperty
(javax.servlet.http.Cookie cookie) protected void
<T extends PortletURL & ActionURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURL
createActionURL
(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createActionURL
(String portletName, MimeResponse.Copy copy) createElement
(String tagName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String portletName, String lifecycle, MimeResponse.Copy copy) <T extends PortletURL & RenderURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURL
createRenderURL
(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createRenderURL
(String portletName, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURL
createResourceURL
(String portletName) long
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
protected com.liferay.portal.kernel.model.Layout
getLayout
(PortletRequest portletRequest, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) abstract String
long
getPlid()
com.liferay.portal.kernel.model.Portlet
protected PortletPreferences
getPortletPreferences
(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.model.Layout layout, String portletName) getProperty
(String key) getPropertyValues
(String key) com.liferay.portal.kernel.servlet.URLEncoder
void
init
(PortletRequestImpl portletRequestImpl, javax.servlet.http.HttpServletResponse httpServletResponse) void
setDateHeader
(String name, long date) void
void
setIntHeader
(String name, int value) void
setPlid
(long plid) void
setProperty
(String key, String value) void
setURLEncoder
(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) void
transferHeaders
(javax.servlet.http.HttpServletResponse httpServletResponse) void
-
Field Details
-
httpServletResponse
protected javax.servlet.http.HttpServletResponse httpServletResponse -
portletName
-
portletRequestImpl
-
-
Constructor Details
-
PortletResponseImpl
public PortletResponseImpl()
-
-
Method Details
-
addDateHeader
- Specified by:
addDateHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addHeader
- Specified by:
addHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addIntHeader
- Specified by:
addIntHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addProperty
public void addProperty(javax.servlet.http.Cookie cookie) - Specified by:
addProperty
in interfacePortletResponse
-
addProperty
- Specified by:
addProperty
in interfacePortletResponse
-
addProperty
- Specified by:
addProperty
in interfacePortletResponse
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, MimeResponse.Copy copy) - Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createElement
- Specified by:
createElement
in interfacePortletResponse
- Throws:
DOMException
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
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
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, MimeResponse.Copy copy) - Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
encodeURL
- Specified by:
encodeURL
in interfacePortletResponse
-
getCompanyId
public long getCompanyId() -
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest() -
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()- Specified by:
getHttpServletResponse
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getLifecycle
- Specified by:
getLifecycle
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getNamespace
- Specified by:
getNamespace
in interfacePortletResponse
-
getPlid
public long getPlid() -
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortlet
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getPortletName
-
getPortletRequest
-
getProperties
- Specified by:
getProperties
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getProperty
- Specified by:
getProperty
in interfacePortletResponse
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacePortletResponse
-
getPropertyValues
- Specified by:
getPropertyValues
in interfacePortletResponse
-
getUrlEncoder
public com.liferay.portal.kernel.servlet.URLEncoder getUrlEncoder() -
init
public void init(PortletRequestImpl portletRequestImpl, javax.servlet.http.HttpServletResponse httpServletResponse) -
setDateHeader
- Specified by:
setDateHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setHeader
- Specified by:
setHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setIntHeader
- Specified by:
setIntHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setPlid
public void setPlid(long plid) -
setProperty
- Specified by:
setProperty
in interfacePortletResponse
-
setURLEncoder
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) - Specified by:
setURLEncoder
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferHeaders
public void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse) - Specified by:
transferHeaders
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferMarkupHeadElements
public void transferMarkupHeadElements()- Specified by:
transferMarkupHeadElements
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
clearHeaders
protected void clearHeaders() -
getLayout
protected com.liferay.portal.kernel.model.Layout getLayout(PortletRequest portletRequest, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) -
getPortletPreferences
protected PortletPreferences getPortletPreferences(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.model.Layout layout, String portletName)
-