Class PortletHtmlContent

  • All Implemented Interfaces:
    XmlContent

    public abstract class PortletHtmlContent
    extends Portlet
    Class that allow templates to generate content without using XML and XSL.
    • Constructor Detail

      • PortletHtmlContent

        public PortletHtmlContent()
    • Method Detail

      • getHtmlContent

        public abstract String getHtmlContent​(javax.servlet.http.HttpServletRequest request)
        Get the HTML content of the portlet. If the content must be generated from XML and XSL, then this method should return null. This method should only be overrided if the method Portlet.isContentGeneratedByXmlAndXsl() returns true Force to override the default implementation
        Overrides:
        getHtmlContent in class Portlet
        Parameters:
        request - The request
        Returns:
        The HTML content of the portlet, or null if the content is generated from XML and XSL
      • getXml

        public String getXml​(javax.servlet.http.HttpServletRequest request)
                      throws SiteMessageException
        This method should return the body of an Xml document providing the content
        Parameters:
        request - The HTTP Servlet Request
        Returns:
        string The String
        Throws:
        SiteMessageException - occurs when a site message need to be displayed
      • getXmlDocument

        public String getXmlDocument​(javax.servlet.http.HttpServletRequest request)
                              throws SiteMessageException
        This method should return the whole Xml document providing the content (including the header)
        Parameters:
        request - The HTTP Servlet Request
        Returns:
        string The String
        Throws:
        SiteMessageException - occurs when a site message need to be displayed