Class PageMetadataImpl

    • Field Detail

      • resource

        @Inject
        protected org.apache.sling.api.resource.Resource resource
    • Constructor Detail

      • PageMetadataImpl

        public PageMetadataImpl()
    • Method Detail

      • getMetaDescription

        public String getMetaDescription()
        Specified by:
        getMetaDescription in interface PageMetadata
        Returns:
        The content for the meta description tag of the HTML page.
      • getMetaKeywords

        public String getMetaKeywords()
        Specified by:
        getMetaKeywords in interface PageMetadata
        Returns:
        The content for the meta keywords tag of the HTML page.
      • getMetaTitle

        public String getMetaTitle()
        Description copied from interface: PageMetadata
        Although this method refers to "metaTitle", this is used to set the title tag of the HTML page. The method is not called getTitle() to avoid confusion with ProductList.getTitle()
        Specified by:
        getMetaTitle in interface PageMetadata
        Returns:
        The content for the title tag of the HTML page.
      • getCanonicalUrl

        public String getCanonicalUrl()
        Specified by:
        getCanonicalUrl in interface PageMetadata
        Returns:
        The fully-qualified canonical url, to set the canonical link element of the HTML page.