public abstract class PortletResponseImpl
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletResponse
Modifier and Type | Field and Description |
---|---|
protected String |
portletName |
protected PortletRequestImpl |
portletRequestImpl |
protected javax.servlet.http.HttpServletResponse |
response |
Constructor and Description |
---|
PortletResponseImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addDateHeader(String name,
long date) |
void |
addHeader(String name,
String value) |
void |
addIntHeader(String name,
int value) |
void |
addProperty(javax.servlet.http.Cookie cookie) |
void |
addProperty(String key,
org.w3c.dom.Element element) |
void |
addProperty(String key,
String value) |
PortletURL |
createActionURL() |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createActionURL(String portletName) |
org.w3c.dom.Element |
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(String lifecycle) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createLiferayPortletURL(String portletName,
String lifecycle) |
PortletURL |
createRenderURL() |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createRenderURL(String portletName) |
ResourceURL |
createResourceURL() |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createResourceURL(String portletName) |
protected com.liferay.portal.kernel.portlet.LiferayPortletURL |
doCreateLiferayPortletURL(long plid,
String portletName,
String lifecycle,
boolean includeLinkToLayoutUuid) |
String |
encodeURL(String path) |
long |
getCompanyId() |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse() |
abstract String |
getLifecycle() |
String |
getNamespace() |
long |
getPlid() |
com.liferay.portal.kernel.model.Portlet |
getPortlet() |
String |
getPortletName() |
PortletRequestImpl |
getPortletRequest() |
static PortletResponseImpl |
getPortletResponseImpl(PortletResponse portletResponse) |
Map<String,String[]> |
getProperties() |
com.liferay.portal.kernel.servlet.URLEncoder |
getUrlEncoder() |
protected void |
init(PortletRequestImpl portletRequestImpl,
javax.servlet.http.HttpServletResponse response) |
protected void |
init(PortletRequestImpl portletRequestImpl,
javax.servlet.http.HttpServletResponse response,
String portletName,
long companyId,
long plid)
Deprecated.
As of 7.0.0, replaced by
init(PortletRequestImpl,
HttpServletResponse) |
void |
setDateHeader(String name,
long date) |
void |
setHeader(String name,
String value) |
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 response) |
void |
transferMarkupHeadElements() |
protected String portletName
protected PortletRequestImpl portletRequestImpl
protected javax.servlet.http.HttpServletResponse response
public static PortletResponseImpl getPortletResponseImpl(PortletResponse portletResponse)
public void addDateHeader(String name, long date)
addDateHeader
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public void addHeader(String name, String value)
addHeader
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public void addIntHeader(String name, int value)
addIntHeader
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public void addProperty(javax.servlet.http.Cookie cookie)
addProperty
in interface PortletResponse
public void addProperty(String key, org.w3c.dom.Element element)
addProperty
in interface PortletResponse
public void addProperty(String key, String value)
addProperty
in interface PortletResponse
public PortletURL createActionURL()
createActionURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName)
createActionURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public org.w3c.dom.Element createElement(String tagName) throws org.w3c.dom.DOMException
createElement
in interface PortletResponse
org.w3c.dom.DOMException
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle)
createLiferayPortletURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid)
createLiferayPortletURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle)
createLiferayPortletURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle)
createLiferayPortletURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public PortletURL createRenderURL()
createRenderURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName)
createRenderURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public ResourceURL createResourceURL()
createResourceURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public com.liferay.portal.kernel.portlet.LiferayPortletURL createResourceURL(String portletName)
createResourceURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public String encodeURL(String path)
encodeURL
in interface PortletResponse
public long getCompanyId()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
getHttpServletResponse
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public abstract String getLifecycle()
public String getNamespace()
getNamespace
in interface PortletResponse
public long getPlid()
public com.liferay.portal.kernel.model.Portlet getPortlet()
getPortlet
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public String getPortletName()
public PortletRequestImpl getPortletRequest()
public Map<String,String[]> getProperties()
getProperties
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public com.liferay.portal.kernel.servlet.URLEncoder getUrlEncoder()
public void setDateHeader(String name, long date)
setDateHeader
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public void setHeader(String name, String value)
setHeader
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public void setIntHeader(String name, int value)
setIntHeader
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public void setPlid(long plid)
public void setProperty(String key, String value)
setProperty
in interface PortletResponse
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder)
public void transferHeaders(javax.servlet.http.HttpServletResponse response)
public void transferMarkupHeadElements()
transferMarkupHeadElements
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
protected com.liferay.portal.kernel.portlet.LiferayPortletURL doCreateLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid)
protected void init(PortletRequestImpl portletRequestImpl, javax.servlet.http.HttpServletResponse response)
@Deprecated protected void init(PortletRequestImpl portletRequestImpl, javax.servlet.http.HttpServletResponse response, String portletName, long companyId, long plid)
init(PortletRequestImpl,
HttpServletResponse)