Class FaviconManager

    • Field Detail

      • FAVICON_DIR

        public static final java.lang.String FAVICON_DIR
        Path of the webapp directory in which downloaded favicons files will be stored.
        See Also:
        Constant Field Values
      • DEFAULT_ICON

        public static final java.lang.String DEFAULT_ICON
        Default icon used if a favicons could not be downloaded.
        See Also:
        Constant Field Values
    • Method Detail

      • getIcon

        public java.lang.String getIcon​(java.lang.String url)
        Returns the bookmark icon (ie the favicon) of the given URL.
        Parameters:
        url - the URL to get the icon
        Returns:
        the bookmark icon (ie the favicon) of the given URL.
        Since:
        jcms-6.0.0
      • extractFaviconFromContent

        @Deprecated
        protected static java.lang.String extractFaviconFromContent​(java.lang.String content,
                                                                    java.lang.String url)
        Deprecated.
        since 10.0.6 prefer using this class WebPageMetaDataExtractorUtils which search for favicon using jsoup instead of regexps
        Parameters:
        content - the content of the page
        url - the page url
        Returns:
        the extracted favicon