Class HtmlInjector

  • All Implemented Interfaces:
    IHtmlProcessor

    public class HtmlInjector
    extends java.lang.Object
    implements IHtmlProcessor
    IHtmlProcessor that injects managed HTML into pages.
    Since:
    8.2.0
    Version:
    $Revision: 22901 $ $Date: 2019-07-02 11:51:03 -0300 (Tue, 02 Jul 2019) $
    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlInjector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(java.lang.String serviceInstanceId)
      Initializes this HTML processor with the given service instance identifier.
      java.lang.String process​(java.lang.String originalHtml, IPageWebResourceRenderRequest pageWebResourceRenderRequest)
      Returns the processed HMTL for user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HtmlInjector

        public HtmlInjector()
    • Method Detail

      • process

        public java.lang.String process​(java.lang.String originalHtml,
                                        IPageWebResourceRenderRequest pageWebResourceRenderRequest)
                                 throws PortalException
        Description copied from interface: IHtmlProcessor
        Returns the processed HMTL for user. This method must not return null.
        Specified by:
        process in interface IHtmlProcessor
        Parameters:
        originalHtml - the original HMTL.
        pageWebResourceRenderRequest - the page webresource render request.
        Returns:
        the processed HMTL for user.
        Throws:
        PortalException
      • init

        public void init​(java.lang.String serviceInstanceId)
                  throws PortalException
        Description copied from interface: IHtmlProcessor
        Initializes this HTML processor with the given service instance identifier.
        Specified by:
        init in interface IHtmlProcessor
        Parameters:
        serviceInstanceId - the service instance identifier.
        Throws:
        PortalException