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 Details

    • httpServletResponse

      protected javax.servlet.http.HttpServletResponse httpServletResponse
    • portletName

      protected String portletName
    • portletRequestImpl

      protected PortletRequestImpl portletRequestImpl
  • Constructor Details

    • PortletResponseImpl

      public PortletResponseImpl()
  • Method Details

    • addDateHeader

      public void addDateHeader(String name, long date)
      Specified by:
      addDateHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • addHeader

      public void addHeader(String name, String value)
      Specified by:
      addHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • addIntHeader

      public void addIntHeader(String name, int value)
      Specified by:
      addIntHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • addProperty

      public void addProperty(javax.servlet.http.Cookie cookie)
      Specified by:
      addProperty in interface PortletResponse
    • addProperty

      public void addProperty(String key, Element element)
      Specified by:
      addProperty in interface PortletResponse
    • addProperty

      public void addProperty(String key, String value)
      Specified by:
      addProperty in interface PortletResponse
    • createActionURL

      public <T extends PortletURL & ActionURL> T createActionURL()
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createActionURL

      public ActionURL createActionURL(MimeResponse.Copy copy)
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createActionURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName)
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createActionURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, MimeResponse.Copy copy)
      Specified by:
      createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createElement

      public Element createElement(String tagName) throws DOMException
      Specified by:
      createElement in interface PortletResponse
      Throws:
      DOMException
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle)
      Specified by:
      createLiferayPortletURL in interface com.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 interface com.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 interface com.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 interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle)
      Specified by:
      createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createLiferayPortletURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle)
      Specified by:
      createLiferayPortletURL in interface com.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 interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createRenderURL

      public <T extends PortletURL & RenderURL> T createRenderURL()
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createRenderURL

      public RenderURL createRenderURL(MimeResponse.Copy copy)
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createRenderURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName)
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createRenderURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, MimeResponse.Copy copy)
      Specified by:
      createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createResourceURL

      public ResourceURL createResourceURL()
      Specified by:
      createResourceURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • createResourceURL

      public com.liferay.portal.kernel.portlet.LiferayPortletURL createResourceURL(String portletName)
      Specified by:
      createResourceURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • encodeURL

      public String encodeURL(String path)
      Specified by:
      encodeURL in interface PortletResponse
    • getCompanyId

      public long getCompanyId()
    • getHttpServletRequest

      public javax.servlet.http.HttpServletRequest getHttpServletRequest()
    • getHttpServletResponse

      public javax.servlet.http.HttpServletResponse getHttpServletResponse()
      Specified by:
      getHttpServletResponse in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • getLifecycle

      public abstract String getLifecycle()
      Specified by:
      getLifecycle in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface PortletResponse
    • getPlid

      public long getPlid()
    • getPortlet

      public com.liferay.portal.kernel.model.Portlet getPortlet()
      Specified by:
      getPortlet in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • getPortletName

      public String getPortletName()
    • getPortletRequest

      public PortletRequestImpl getPortletRequest()
    • getProperties

      public Map<String,String[]> getProperties()
      Specified by:
      getProperties in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • getProperty

      public String getProperty(String key)
      Specified by:
      getProperty in interface PortletResponse
    • getPropertyNames

      public Collection<String> getPropertyNames()
      Specified by:
      getPropertyNames in interface PortletResponse
    • getPropertyValues

      public Collection<String> getPropertyValues(String key)
      Specified by:
      getPropertyValues in interface PortletResponse
    • getUrlEncoder

      public com.liferay.portal.kernel.servlet.URLEncoder getUrlEncoder()
    • init

      public void init(PortletRequestImpl portletRequestImpl, javax.servlet.http.HttpServletResponse httpServletResponse)
    • setDateHeader

      public void setDateHeader(String name, long date)
      Specified by:
      setDateHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • setHeader

      public void setHeader(String name, String value)
      Specified by:
      setHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • setIntHeader

      public void setIntHeader(String name, int value)
      Specified by:
      setIntHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • setPlid

      public void setPlid(long plid)
    • setProperty

      public void setProperty(String key, String value)
      Specified by:
      setProperty in interface PortletResponse
    • setURLEncoder

      public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder)
      Specified by:
      setURLEncoder in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • transferHeaders

      public void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse)
      Specified by:
      transferHeaders in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
    • transferMarkupHeadElements

      public void transferMarkupHeadElements()
      Specified by:
      transferMarkupHeadElements in interface com.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)