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.HttpServletResponseprotected Stringprotected PortletRequestImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDateHeader(String name, long date) voidvoidaddIntHeader(String name, int value) voidaddProperty(String key, String value) voidaddProperty(String key, Element element) voidaddProperty(javax.servlet.http.Cookie cookie) protected void<T extends PortletURL & ActionURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName, MimeResponse.Copy copy) createElement(String tagName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String portletName, String lifecycle, MimeResponse.Copy copy) <T extends PortletURL & RenderURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateResourceURL(String portletName) longjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponseprotected com.liferay.portal.kernel.model.LayoutgetLayout(PortletRequest portletRequest, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) abstract StringlonggetPlid()com.liferay.portal.kernel.model.Portletprotected PortletPreferencesgetPortletPreferences(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.URLEncodervoidinit(PortletRequestImpl portletRequestImpl, javax.servlet.http.HttpServletResponse httpServletResponse) voidsetDateHeader(String name, long date) voidvoidsetIntHeader(String name, int value) voidsetPlid(long plid) voidsetProperty(String key, String value) voidsetURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) voidtransferHeaders(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:
addDateHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addHeader
- Specified by:
addHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addIntHeader
- Specified by:
addIntHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addProperty
public void addProperty(javax.servlet.http.Cookie cookie) - Specified by:
addPropertyin interfacePortletResponse
-
addProperty
- Specified by:
addPropertyin interfacePortletResponse
-
addProperty
- Specified by:
addPropertyin interfacePortletResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, MimeResponse.Copy copy) - Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createElement
- Specified by:
createElementin interfacePortletResponse- Throws:
DOMException
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle) - Specified by:
createLiferayPortletURLin 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:
createLiferayPortletURLin 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:
createLiferayPortletURLin 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:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, MimeResponse.Copy copy) - Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
encodeURL
- Specified by:
encodeURLin interfacePortletResponse
-
getCompanyId
public long getCompanyId() -
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest() -
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()- Specified by:
getHttpServletResponsein interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getLifecycle
- Specified by:
getLifecyclein interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getNamespace
- Specified by:
getNamespacein interfacePortletResponse
-
getPlid
public long getPlid() -
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortletin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getPortletName
-
getPortletRequest
-
getProperties
- Specified by:
getPropertiesin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getProperty
- Specified by:
getPropertyin interfacePortletResponse
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacePortletResponse
-
getPropertyValues
- Specified by:
getPropertyValuesin interfacePortletResponse
-
getUrlEncoder
public com.liferay.portal.kernel.servlet.URLEncoder getUrlEncoder() -
init
public void init(PortletRequestImpl portletRequestImpl, javax.servlet.http.HttpServletResponse httpServletResponse) -
setDateHeader
- Specified by:
setDateHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setHeader
- Specified by:
setHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setIntHeader
- Specified by:
setIntHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setPlid
public void setPlid(long plid) -
setProperty
- Specified by:
setPropertyin interfacePortletResponse
-
setURLEncoder
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) - Specified by:
setURLEncoderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferHeaders
public void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse) - Specified by:
transferHeadersin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferMarkupHeadElements
public void transferMarkupHeadElements()- Specified by:
transferMarkupHeadElementsin 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)
-